>>> mongodb r4.0.12 Downloading --2020-04-07 05:13:59-- https://github.com/mongodb/mongo/archive/r4.0.12/mongodb-r4.0.12.tar.gz Resolving github.com (github.com)... 192.30.255.113 Connecting to github.com (github.com)|192.30.255.113|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://codeload.github.com/mongodb/mongo/tar.gz/r4.0.12 [following] --2020-04-07 05:13:59-- https://codeload.github.com/mongodb/mongo/tar.gz/r4.0.12 Resolving codeload.github.com (codeload.github.com)... 192.30.255.120 Connecting to codeload.github.com (codeload.github.com)|192.30.255.120|:443... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/x-gzip] Saving to: '/home/buildroot/autobuild/instance-1/output-1/build/.mongodb-r4.0.12.tar.gz.dV4009/output' 0K .......... .......... .......... .......... .......... 2.76M 50K .......... .......... .......... .......... .......... 8.80M 100K .......... .......... .......... .......... .......... 3.65M 150K .......... .......... .......... .......... .......... 3.00M 200K .......... .......... .......... .......... .......... 3.46M 250K .......... .......... .......... .......... .......... 6.58M 300K .......... .......... .......... .......... .......... 7.34M 350K .......... .......... .......... .......... .......... 4.19M 400K .......... .......... .......... .......... .......... 3.69M 450K .......... .......... .......... .......... .......... 3.95M 500K .......... .......... .......... .......... .......... 4.42M 550K .......... .......... .......... .......... .......... 4.53M 600K .......... .......... .......... .......... .......... 69.9M 650K .......... .......... .......... .......... .......... 4.86M 700K .......... .......... .......... .......... .......... 4.90M 750K .......... .......... .......... .......... .......... 6.15M 800K .......... .......... .......... .......... .......... 5.41M 850K .......... .......... .......... .......... .......... 5.12M 900K .......... .......... .......... .......... .......... 3.82M 950K .......... .......... .......... .......... .......... 4.91M 1000K .......... .......... .......... .......... .......... 67.1M 1050K .......... .......... .......... .......... .......... 5.28M 1100K .......... .......... .......... .......... .......... 5.40M 1150K .......... .......... .......... .......... .......... 5.24M 1200K .......... .......... .......... .......... .......... 5.71M 1250K .......... .......... .......... .......... .......... 5.89M 1300K .......... .......... .......... .......... .......... 5.45M 1350K .......... .......... .......... .......... .......... 5.41M 1400K .......... .......... .......... .......... .......... 68.2M 1450K .......... .......... .......... .......... .......... 5.85M 1500K .......... .......... .......... .......... .......... 4.68M 1550K .......... .......... .......... .......... .......... 5.59M 1600K .......... .......... .......... .......... .......... 10.1M 1650K .......... .......... .......... .......... .......... 12.0M 1700K .......... .......... .......... .......... .......... 4.36M 1750K .......... .......... .......... .......... .......... 30.1M 1800K .......... .......... .......... .......... .......... 4.60M 1850K .......... .......... .......... .......... .......... 5.54M 1900K .......... .......... .......... .......... .......... 5.76M 1950K .......... .......... .......... .......... .......... 65.2M 2000K .......... .......... .......... .......... .......... 2.97M 2050K .......... .......... .......... .......... .......... 58.4M 2100K .......... .......... .......... .......... .......... 5.72M 2150K .......... .......... .......... .......... .......... 5.15M 2200K .......... .......... .......... .......... .......... 5.04M 2250K .......... .......... .......... .......... .......... 4.94M 2300K .......... .......... .......... .......... .......... 51.7M 2350K .......... .......... .......... .......... .......... 5.41M 2400K .......... .......... .......... .......... .......... 4.82M 2450K .......... .......... .......... .......... .......... 5.20M 2500K .......... .......... .......... .......... .......... 5.09M 2550K .......... .......... .......... .......... .......... 5.13M 2600K .......... .......... .......... .......... .......... 5.40M 2650K .......... .......... .......... .......... .......... 79.5M 2700K .......... .......... .......... .......... .......... 5.22M 2750K .......... .......... .......... .......... .......... 5.54M 2800K .......... .......... .......... .......... .......... 5.56M 2850K .......... .......... .......... .......... .......... 5.28M 2900K .......... .......... .......... .......... .......... 4.79M 2950K .......... .......... .......... .......... .......... 5.13M 3000K .......... .......... .......... .......... .......... 5.10M 3050K .......... .......... .......... .......... .......... 61.0M 3100K .......... .......... .......... .......... .......... 4.67M 3150K .......... .......... .......... .......... .......... 5.42M 3200K .......... .......... .......... .......... .......... 4.59M 3250K .......... .......... .......... .......... .......... 4.87M 3300K .......... .......... .......... .......... .......... 4.88M 3350K .......... .......... .......... .......... .......... 4.89M 3400K .......... .......... .......... .......... .......... 61.8M 3450K .......... .......... .......... .......... .......... 5.03M 3500K .......... .......... .......... .......... .......... 5.02M 3550K .......... .......... .......... .......... .......... 3.53M 3600K .......... .......... .......... .......... .......... 2.66M 3650K .......... .......... .......... .......... .......... 2.87M 3700K .......... .......... .......... .......... .......... 3.09M 3750K .......... .......... .......... .......... .......... 60.0M 3800K .......... .......... .......... .......... .......... 3.63M 3850K .......... .......... .......... .......... .......... 3.60M 3900K .......... .......... .......... .......... .......... 3.71M 3950K .......... .......... .......... .......... .......... 3.88M 4000K .......... .......... .......... .......... .......... 4.39M 4050K .......... .......... .......... .......... .......... 4.64M 4100K .......... .......... .......... .......... .......... 41.8M 4150K .......... .......... .......... .......... .......... 6.45M 4200K .......... .......... .......... .......... .......... 5.41M 4250K .......... .......... .......... .......... .......... 5.51M 4300K .......... .......... .......... .......... .......... 3.63M 4350K .......... .......... .......... .......... .......... 2.49M 4400K .......... .......... .......... .......... .......... 2.58M 4450K .......... .......... .......... .......... .......... 3.25M 4500K .......... .......... .......... .......... .......... 41.9M 4550K .......... .......... .......... .......... .......... 3.34M 4600K .......... .......... .......... .......... .......... 3.57M 4650K .......... .......... .......... .......... .......... 2.26M 4700K .......... .......... .......... .......... .......... 12.3M 4750K .......... .......... .......... .......... .......... 4.04M 4800K .......... .......... .......... .......... .......... 3.94M 4850K .......... .......... .......... .......... .......... 33.0M 4900K .......... .......... .......... .......... .......... 4.16M 4950K .......... .......... .......... .......... .......... 4.94M 5000K .......... .......... .......... .......... .......... 5.29M 5050K .......... .......... .......... .......... .......... 5.10M 5100K .......... .......... .......... .......... .......... 5.11M 5150K .......... .......... .......... .......... .......... 50.7M 5200K .......... .......... .......... .......... .......... 2.72M 5250K .......... .......... .......... .......... .......... 38.4M 5300K .......... .......... .......... .......... .......... 5.18M 5350K .......... .......... .......... .......... .......... 3.98M 5400K .......... .......... .......... .......... .......... 5.76M 5450K .......... .......... .......... .......... .......... 4.85M 5500K .......... .......... .......... .......... .......... 42.7M 5550K .......... .......... .......... .......... .......... 5.32M 5600K .......... .......... .......... .......... .......... 5.09M 5650K .......... .......... .......... .......... .......... 4.36M 5700K .......... .......... .......... .......... .......... 4.89M 5750K .......... .......... .......... .......... .......... 4.97M 5800K .......... .......... .......... .......... .......... 45.7M 5850K .......... .......... .......... .......... .......... 5.02M 5900K .......... .......... .......... .......... .......... 4.55M 5950K .......... .......... .......... .......... .......... 5.09M 6000K .......... .......... .......... .......... .......... 5.21M 6050K .......... .......... .......... .......... .......... 4.90M 6100K .......... .......... .......... .......... .......... 5.10M 6150K .......... .......... .......... .......... .......... 46.8M 6200K .......... .......... .......... .......... .......... 4.71M 6250K .......... .......... .......... .......... .......... 4.81M 6300K .......... .......... .......... .......... .......... 4.95M 6350K .......... .......... .......... .......... .......... 5.02M 6400K .......... .......... .......... .......... .......... 5.22M 6450K .......... .......... .......... .......... .......... 5.04M 6500K .......... .......... .......... .......... .......... 70.2M 6550K .......... .......... .......... .......... .......... 4.69M 6600K .......... .......... .......... .......... .......... 4.76M 6650K .......... .......... .......... .......... .......... 5.89M 6700K .......... .......... .......... .......... .......... 5.23M 6750K .......... .......... .......... .......... .......... 74.9M 6800K .......... .......... .......... .......... .......... 2.72M 6850K .......... .......... .......... .......... .......... 41.8M 6900K .......... .......... .......... .......... .......... 5.37M 6950K .......... .......... .......... .......... .......... 5.49M 7000K .......... .......... .......... .......... .......... 5.20M 7050K .......... .......... .......... .......... .......... 4.54M 7100K .......... .......... .......... .......... .......... 5.03M 7150K .......... .......... .......... .......... .......... 50.1M 7200K .......... .......... .......... .......... .......... 5.42M 7250K .......... .......... .......... .......... .......... 5.23M 7300K .......... .......... .......... .......... .......... 5.06M 7350K .......... .......... .......... .......... .......... 5.10M 7400K .......... .......... .......... .......... .......... 5.64M 7450K .......... .......... .......... .......... .......... 5.11M 7500K .......... .......... .......... .......... .......... 5.02M 7550K .......... .......... .......... .......... .......... 48.8M 7600K .......... .......... .......... .......... .......... 8.29M 7650K .......... .......... .......... .......... .......... 4.91M 7700K .......... .......... .......... .......... .......... 5.05M 7750K .......... .......... .......... .......... .......... 17.9M 7800K .......... .......... .......... .......... .......... 6.31M 7850K .......... .......... .......... .......... .......... 4.51M 7900K .......... .......... .......... .......... .......... 44.4M 7950K .......... .......... .......... .......... .......... 16.1M 8000K .......... .......... .......... .......... .......... 25.6M 8050K .......... .......... .......... .......... .......... 4.35M 8100K .......... .......... .......... .......... .......... 3.29M 8150K .......... .......... .......... .......... .......... 44.8M 8200K .......... .......... .......... .......... .......... 6.50M 8250K .......... .......... .......... .......... .......... 5.25M 8300K .......... .......... .......... .......... .......... 5.68M 8350K .......... .......... .......... .......... .......... 5.66M 8400K .......... .......... .......... .......... .......... 5.58M 8450K .......... .......... .......... .......... .......... 8.23M 8500K .......... .......... .......... .......... .......... 5.40M 8550K .......... .......... .......... .......... .......... 45.7M 8600K .......... .......... .......... .......... .......... 4.98M 8650K .......... .......... .......... .......... .......... 15.1M 8700K .......... .......... .......... .......... .......... 7.80M 8750K .......... .......... .......... .......... .......... 5.27M 8800K .......... .......... .......... .......... .......... 6.73M 8850K .......... .......... .......... .......... .......... 5.65M 8900K .......... .......... .......... .......... .......... 5.45M 8950K .......... .......... .......... .......... .......... 5.58M 9000K .......... .......... .......... .......... .......... 45.0M 9050K .......... .......... .......... .......... .......... 5.80M 9100K .......... .......... .......... .......... .......... 2.60M 9150K .......... .......... .......... .......... .......... 11.3M 9200K .......... .......... .......... .......... .......... 5.55M 9250K .......... .......... .......... .......... .......... 5.21M 9300K .......... .......... .......... .......... .......... 4.83M 9350K .......... .......... .......... .......... .......... 4.77M 9400K .......... .......... .......... .......... .......... 5.51M 9450K .......... .......... .......... .......... .......... 5.74M 9500K .......... .......... .......... .......... .......... 5.10M 9550K .......... .......... .......... .......... .......... 5.23M 9600K .......... .......... .......... .......... .......... 6.17M 9650K .......... .......... .......... .......... .......... 5.07M 9700K .......... .......... .......... .......... .......... 41.1M 9750K .......... .......... .......... .......... .......... 5.33M 9800K .......... .......... .......... .......... .......... 5.46M 9850K .......... .......... .......... .......... .......... 11.2M 9900K .......... .......... .......... .......... .......... 15.9M 9950K .......... .......... .......... .......... .......... 29.2M 10000K .......... .......... .......... .......... .......... 3.12M 10050K .......... .......... .......... .......... .......... 41.6M 10100K .......... .......... .......... .......... .......... 9.05M 10150K .......... .......... .......... .......... .......... 37.2M 10200K .......... .......... .......... .......... .......... 38.2M 10250K .......... .......... .......... .......... .......... 7.75M 10300K .......... .......... .......... .......... .......... 8.15M 10350K .......... .......... .......... .......... .......... 11.9M 10400K .......... .......... .......... .......... .......... 5.13M 10450K .......... .......... .......... .......... .......... 17.1M 10500K .......... .......... .......... .......... .......... 10.5M 10550K .......... .......... .......... .......... .......... 8.67M 10600K .......... .......... .......... .......... .......... 15.4M 10650K .......... .......... .......... .......... .......... 9.94M 10700K .......... .......... .......... .......... .......... 7.17M 10750K .......... .......... .......... .......... .......... 8.42M 10800K .......... .......... .......... .......... .......... 10.5M 10850K .......... .......... .......... .......... .......... 5.66M 10900K .......... .......... .......... .......... .......... 37.6M 10950K .......... .......... .......... .......... .......... 5.50M 11000K .......... .......... .......... .......... .......... 7.60M 11050K .......... .......... .......... .......... .......... 7.39M 11100K .......... .......... .......... .......... .......... 18.4M 11150K .......... .......... .......... .......... .......... 7.61M 11200K .......... .......... .......... .......... .......... 5.53M 11250K .......... .......... .......... .......... .......... 19.2M 11300K .......... .......... .......... .......... .......... 24.6M 11350K .......... .......... .......... .......... .......... 32.2M 11400K .......... .......... .......... .......... .......... 27.0M 11450K .......... .......... .......... .......... .......... 30.6M 11500K .......... .......... .......... .......... .......... 23.3M 11550K .......... .......... .......... .......... .......... 34.7M 11600K .......... .......... .......... .......... .......... 26.4M 11650K .......... .......... .......... .......... .......... 25.4M 11700K .......... .......... .......... .......... .......... 33.7M 11750K .......... .......... .......... .......... .......... 15.7M 11800K .......... .......... .......... .......... .......... 4.81M 11850K .......... .......... .......... .......... .......... 6.62M 11900K .......... .......... .......... .......... .......... 5.65M 11950K .......... .......... .......... .......... .......... 5.36M 12000K .......... .......... .......... .......... .......... 1.02M 12050K .......... .......... .......... .......... .......... 3.05M 12100K .......... .......... .......... .......... .......... 3.66M 12150K .......... .......... .......... .......... .......... 3.97M 12200K .......... .......... .......... .......... .......... 3.82M 12250K .......... .......... .......... .......... .......... 4.63M 12300K .......... .......... .......... .......... .......... 4.99M 12350K .......... .......... .......... .......... .......... 5.10M 12400K .......... .......... .......... .......... .......... 5.36M 12450K .......... .......... .......... .......... .......... 5.63M 12500K .......... .......... .......... .......... .......... 5.84M 12550K .......... .......... .......... .......... .......... 8.63M 12600K .......... .......... .......... .......... .......... 6.93M 12650K .......... .......... .......... .......... .......... 6.99M 12700K .......... .......... .......... .......... .......... 6.02M 12750K .......... .......... .......... .......... .......... 6.50M 12800K .......... .......... .......... .......... .......... 6.43M 12850K .......... .......... .......... .......... .......... 6.45M 12900K .......... .......... .......... .......... .......... 6.25M 12950K .......... .......... .......... .......... .......... 6.38M 13000K .......... .......... .......... .......... .......... 6.14M 13050K .......... .......... .......... .......... .......... 5.97M 13100K .......... .......... .......... .......... .......... 5.15M 13150K .......... .......... .......... .......... .......... 7.66M 13200K .......... .......... .......... .......... .......... 1.14M 13250K .......... .......... .......... .......... .......... 2.43M 13300K .......... .......... .......... .......... .......... 2.52M 13350K .......... .......... .......... .......... .......... 2.66M 13400K .......... .......... .......... .......... .......... 3.05M 13450K .......... .......... .......... .......... .......... 3.21M 13500K .......... .......... .......... .......... .......... 67.2M 13550K .......... .......... .......... .......... .......... 3.42M 13600K .......... .......... .......... .......... .......... 2.15M 13650K .......... .......... .......... .......... .......... 68.4M 13700K .......... .......... .......... .......... .......... 4.16M 13750K .......... .......... .......... .......... .......... 4.01M 13800K .......... .......... .......... .......... .......... 5.20M 13850K .......... .......... .......... .......... .......... 5.69M 13900K .......... .......... .......... .......... .......... 6.04M 13950K .......... .......... .......... .......... .......... 5.68M 14000K .......... .......... .......... .......... .......... 5.67M 14050K .......... .......... .......... .......... .......... 5.52M 14100K .......... .......... .......... .......... .......... 5.99M 14150K .......... .......... .......... .......... .......... 5.82M 14200K .......... .......... .......... .......... .......... 3.99M 14250K .......... .......... .......... .......... .......... 67.0M 14300K .......... .......... .......... .......... .......... 5.06M 14350K .......... .......... .......... .......... .......... 4.15M 14400K .......... .......... .......... .......... .......... 3.80M 14450K .......... .......... .......... .......... .......... 3.69M 14500K .......... .......... .......... .......... .......... 4.50M 14550K .......... .......... .......... .......... .......... 4.94M 14600K .......... .......... .......... .......... .......... 5.08M 14650K .......... .......... .......... .......... .......... 4.01M 14700K .......... .......... .......... .......... .......... 4.37M 14750K .......... .......... .......... .......... .......... 5.00M 14800K .......... .......... .......... .......... .......... 5.00M 14850K .......... .......... .......... .......... .......... 4.08M 14900K .......... .......... .......... .......... .......... 13.9M 14950K .......... .......... .......... .......... .......... 9.10M 15000K .......... .......... .......... .......... .......... 7.48M 15050K .......... .......... .......... .......... .......... 4.66M 15100K .......... .......... .......... .......... .......... 4.65M 15150K .......... .......... .......... .......... .......... 4.68M 15200K .......... .......... .......... .......... .......... 4.96M 15250K .......... .......... .......... .......... .......... 5.91M 15300K .......... .......... .......... .......... .......... 6.41M 15350K .......... .......... .......... .......... .......... 4.81M 15400K .......... .......... .......... .......... .......... 5.08M 15450K .......... .......... .......... .......... .......... 5.70M 15500K .......... .......... .......... .......... .......... 1.42M 15550K .......... .......... .......... .......... .......... 6.23M 15600K .......... .......... .......... .......... .......... 7.68M 15650K .......... .......... .......... .......... .......... 6.66M 15700K .......... .......... .......... .......... .......... 7.14M 15750K .......... .......... .......... .......... .......... 7.34M 15800K .......... .......... .......... .......... .......... 6.63M 15850K .......... .......... .......... .......... .......... 70.4M 15900K .......... .......... .......... .......... .......... 6.77M 15950K .......... .......... .......... .......... .......... 6.59M 16000K .......... .......... .......... .......... .......... 5.92M 16050K .......... .......... .......... .......... .......... 8.16M 16100K .......... .......... .......... .......... .......... 7.84M 16150K .......... .......... .......... .......... .......... 7.01M 16200K .......... .......... .......... .......... .......... 5.55M 16250K .......... .......... .......... .......... .......... 7.01M 16300K .......... .......... .......... .......... .......... 6.63M 16350K .......... .......... .......... .......... .......... 80.6M 16400K .......... .......... .......... .......... .......... 3.90M 16450K .......... .......... .......... .......... .......... 56.8M 16500K .......... .......... .......... .......... .......... 6.75M 16550K .......... .......... .......... .......... .......... 6.50M 16600K .......... .......... .......... .......... .......... 7.31M 16650K .......... .......... .......... .......... .......... 5.21M 16700K .......... .......... .......... .......... .......... 6.51M 16750K .......... .......... .......... .......... .......... 5.99M 16800K .......... .......... .......... .......... .......... 1.10M 16850K .......... .......... .......... .......... .......... 3.56M 16900K .......... .......... .......... .......... .......... 3.70M 16950K .......... .......... .......... .......... .......... 3.88M 17000K .......... .......... .......... .......... .......... 4.44M 17050K .......... .......... .......... .......... .......... 5.48M 17100K .......... .......... .......... .......... .......... 6.01M 17150K .......... .......... .......... .......... .......... 4.19M 17200K .......... .......... .......... .......... .......... 4.99M 17250K .......... .......... .......... .......... .......... 4.93M 17300K .......... .......... .......... .......... .......... 6.08M 17350K .......... .......... .......... .......... .......... 68.0M 17400K .......... .......... .......... .......... .......... 3.55M 17450K .......... .......... .......... .......... .......... 3.89M 17500K .......... .......... .......... .......... .......... 4.78M 17550K .......... .......... .......... .......... .......... 2.69M 17600K .......... .......... .......... .......... .......... 4.49M 17650K .......... .......... .......... .......... .......... 5.46M 17700K .......... .......... .......... .......... .......... 6.28M 17750K .......... .......... .......... .......... .......... 6.79M 17800K .......... .......... .......... .......... .......... 6.49M 17850K .......... .......... .......... .......... .......... 4.96M 17900K .......... .......... .......... .......... .......... 67.4M 17950K .......... .......... .......... .......... .......... 3.68M 18000K .......... .......... .......... .......... .......... 49.2M 18050K .......... .......... .......... .......... .......... 22.5M 18100K .......... .......... .......... .......... .......... 16.6M 18150K .......... .......... .......... .......... .......... 5.08M 18200K .......... .......... .......... .......... .......... 5.61M 18250K .......... .......... .......... .......... .......... 4.83M 18300K .......... .......... .......... .......... .......... 20.0M 18350K .......... .......... .......... .......... .......... 4.11M 18400K .......... .......... .......... .......... .......... 4.82M 18450K .......... .......... .......... .......... .......... 4.53M 18500K .......... .......... .......... .......... .......... 5.27M 18550K .......... .......... .......... .......... .......... 5.17M 18600K .......... .......... .......... .......... .......... 71.6M 18650K .......... .......... .......... .......... .......... 4.77M 18700K .......... .......... .......... .......... .......... 5.08M 18750K .......... .......... .......... .......... .......... 4.54M 18800K .......... .......... .......... .......... .......... 5.22M 18850K .......... .......... .......... .......... .......... 5.13M 18900K .......... .......... .......... .......... .......... 5.13M 18950K .......... .......... .......... .......... .......... 62.6M 19000K .......... .......... .......... .......... .......... 5.19M 19050K .......... .......... .......... .......... .......... 5.59M 19100K .......... .......... .......... .......... .......... 5.47M 19150K .......... .......... .......... .......... .......... 5.56M 19200K .......... .......... .......... .......... .......... 5.65M 19250K .......... .......... .......... .......... .......... 5.14M 19300K .......... .......... .......... .......... .......... 57.9M 19350K .......... .......... .......... .......... .......... 5.62M 19400K .......... .......... .......... .......... .......... 5.23M 19450K .......... .......... .......... .......... .......... 5.90M 19500K .......... .......... .......... .......... .......... 4.96M 19550K .......... .......... .......... .......... .......... 5.53M 19600K .......... .......... .......... .......... .......... 4.87M 19650K .......... .......... .......... .......... .......... 5.53M 19700K .......... .......... .......... .......... .......... 57.8M 19750K .......... .......... .......... .......... .......... 6.13M 19800K .......... .......... .......... .......... .......... 5.79M 19850K .......... .......... .......... .......... .......... 12.8M 19900K .......... .......... .......... .......... .......... 6.48M 19950K .......... .......... .......... .......... .......... 5.43M 20000K .......... .......... .......... .......... .......... 11.0M 20050K .......... .......... .......... .......... .......... 6.59M 20100K .......... .......... .......... .......... .......... 6.22M 20150K .......... .......... .......... .......... .......... 6.50M 20200K .......... .......... .......... .......... .......... 6.86M 20250K .......... .......... .......... .......... .......... 2.71M 20300K .......... .......... .......... .......... .......... 64.4M 20350K .......... .......... .......... .......... .......... 9.78M 20400K .......... .......... .......... .......... .......... 6.05M 20450K .......... .......... .......... .......... .......... 10.6M 20500K .......... .......... .......... .......... .......... 10.5M 20550K .......... .......... .......... .......... .......... 11.2M 20600K .......... .......... .......... .......... .......... 10.2M 20650K .......... .......... .......... .......... .......... 11.1M 20700K .......... .......... .......... .......... .......... 13.8M 20750K .......... .......... .......... .......... .......... 4.71M 20800K .......... .......... .......... .......... .......... 3.31M 20850K .......... .......... .......... .......... .......... 11.3M 20900K .......... .......... .......... .......... .......... 11.4M 20950K .......... .......... .......... .......... .......... 10.1M 21000K .......... .......... .......... .......... .......... 11.1M 21050K .......... .......... .......... .......... .......... 10.7M 21100K .......... .......... .......... .......... .......... 10.9M 21150K .......... .......... .......... .......... .......... 10.3M 21200K .......... .......... .......... .......... .......... 3.44M 21250K .......... .......... .......... .......... .......... 11.4M 21300K .......... .......... .......... .......... .......... 10.4M 21350K .......... .......... .......... .......... .......... 10.8M 21400K .......... .......... .......... .......... .......... 10.8M 21450K .......... .......... .......... .......... .......... 10.8M 21500K .......... .......... .......... .......... .......... 11.0M 21550K .......... .......... .......... .......... .......... 9.25M 21600K .......... .......... .......... .......... .......... 11.1M 21650K .......... .......... .......... .......... .......... 4.81M 21700K .......... .......... .......... .......... .......... 5.12M 21750K .......... .......... .......... .......... .......... 8.28M 21800K .......... .......... .......... .......... .......... 6.00M 21850K .......... .......... .......... .......... .......... 16.1M 21900K .......... .......... .......... .......... .......... 803K 21950K .......... .......... .......... .......... .......... 2.48M 22000K .......... .......... .......... .......... .......... 2.72M 22050K .......... .......... .......... .......... .......... 2.82M 22100K .......... .......... .......... .......... .......... 3.02M 22150K .......... .......... .......... .......... .......... 4.00M 22200K .......... .......... .......... .......... .......... 3.73M 22250K .......... .......... .......... .......... .......... 69.4M 22300K .......... .......... .......... .......... .......... 3.54M 22350K .......... .......... .......... .......... .......... 3.84M 22400K .......... .......... .......... .......... .......... 3.92M 22450K .......... .......... .......... .......... .......... 4.37M 22500K .......... .......... .......... .......... .......... 4.96M 22550K .......... .......... .......... .......... .......... 52.5M 22600K .......... .......... .......... .......... .......... 4.95M 22650K .......... .......... .......... .......... .......... 4.97M 22700K .......... .......... .......... .......... .......... 4.91M 22750K .......... .......... .......... .......... .......... 5.15M 22800K .......... .......... .......... .......... .......... 4.88M 22850K .......... .......... .......... .......... .......... 5.15M 22900K .......... .......... .......... .......... .......... 56.8M 22950K .......... .......... .......... .......... .......... 5.05M 23000K .......... .......... .......... .......... .......... 5.07M 23050K .......... .......... .......... .......... .......... 5.10M 23100K .......... .......... .......... .......... .......... 5.22M 23150K .......... .......... .......... .......... .......... 72.9M 23200K .......... .......... .......... .......... .......... 5.25M 23250K .......... .......... .......... .......... .......... 6.81M 23300K .......... .......... .......... .......... .......... 5.00M 23350K .......... .......... .......... .......... .......... 4.93M 23400K .......... .......... .......... .......... .......... 5.09M 23450K .......... .......... .......... .......... .......... 4.88M 23500K .......... .......... .......... .......... .......... 54.8M 23550K .......... .......... .......... .......... .......... 5.08M 23600K .......... .......... .......... .......... .......... 5.01M 23650K .......... .......... .......... .......... .......... 5.14M 23700K .......... .......... .......... .......... .......... 4.88M 23750K .......... .......... .......... .......... .......... 5.12M 23800K .......... .......... .......... .......... .......... 48.7M 23850K .......... .......... .......... .......... .......... 5.02M 23900K .......... .......... .......... .......... .......... 5.23M 23950K .......... .......... .......... .......... .......... 4.91M 24000K .......... .......... .......... .......... .......... 5.10M 24050K .......... .......... .......... .......... .......... 5.09M 24100K .......... .......... .......... .......... .......... 43.5M 24150K .......... .......... .......... .......... .......... 5.45M 24200K .......... .......... .......... .......... .......... 5.25M 24250K .......... .......... .......... .......... .......... 4.99M 24300K .......... .......... .......... .......... .......... 4.96M 24350K .......... .......... .......... .......... .......... 53.1M 24400K .......... .......... .......... .......... .......... 2.85M 24450K .......... .......... .......... .......... .......... 42.6M 24500K .......... .......... .......... .......... .......... 4.76M 24550K .......... .......... .......... .......... .......... 5.03M 24600K .......... .......... .......... .......... .......... 1.15M 24650K .......... .......... .......... .......... .......... 1.76M 24700K .......... .......... .......... .......... .......... 6.73M 24750K .......... .......... .......... .......... .......... 3.33M 24800K .......... .......... .......... .......... .......... 2.24M 24850K .......... .......... .......... .......... .......... 2.89M 24900K .......... .......... .......... .......... .......... 3.25M 24950K .......... .......... .......... .......... .......... 2.80M 25000K .......... .......... .......... .......... .......... 38.2M 25050K .......... .......... .......... .......... .......... 4.73M 25100K .......... .......... .......... .......... .......... 3.95M 25150K .......... .......... .......... .......... .......... 5.26M 25200K .......... .......... .......... .......... .......... 5.99M 25250K .......... .......... .......... .......... .......... 4.41M 25300K .......... .......... .......... .......... .......... 5.71M 25350K .......... .......... .......... .......... .......... 4.56M 25400K .......... .......... .......... .......... .......... 3.92M 25450K .......... .......... .......... .......... .......... 6.97M 25500K .......... .......... .......... .......... .......... 1.07M 25550K .......... .......... .......... .......... .......... 1.88M 25600K .......... .......... .......... .......... .......... 5.99M 25650K .......... .......... .......... .......... .......... 3.96M 25700K .......... .......... .......... .......... .......... 3.08M 25750K .......... .......... .......... .......... .......... 3.38M 25800K .......... .......... .......... .......... .......... 3.68M 25850K .......... .......... .......... .......... .......... 3.30M 25900K .......... .......... .......... .......... .......... 44.4M 25950K .......... .......... .......... .......... .......... 4.56M 26000K .......... .......... .......... .......... .......... 4.39M 26050K .......... .......... .......... .......... .......... 5.22M 26100K .......... .......... .......... .......... .......... 6.98M 26150K .......... .......... .......... .......... .......... 4.27M 26200K .......... .......... .......... .......... .......... 6.03M 26250K .......... .......... .......... .......... .......... 4.52M 26300K .......... .......... .......... .......... .......... 4.90M 26350K .......... .......... .......... .......... .......... 5.05M 26400K .......... .......... .......... .......... .......... 2.53M 26450K .......... .......... .......... .......... .......... 4.53M 26500K .......... .......... .......... .......... .......... 4.62M 26550K .......... .......... .......... .......... .......... 50.6M 26600K .......... .......... .......... .......... .......... 4.90M 26650K .......... .......... .......... .......... .......... 5.07M 26700K .......... .......... .......... .......... .......... 5.07M 26750K .......... .......... .......... .......... .......... 4.41M 26800K .......... .......... .......... .......... .......... 4.40M 26850K .......... .......... .......... .......... .......... 42.7M 26900K .......... .......... .......... .......... .......... 3.70M 26950K .......... .......... .......... .......... .......... 11.7M 27000K .......... .......... .......... .......... .......... 3.87M 27050K .......... .......... .......... .......... .......... 5.04M 27100K .......... .......... .......... .......... .......... 52.6M 27150K .......... .......... .......... .......... .......... 4.48M 27200K .......... .......... .......... .......... .......... 4.57M 27250K .......... .......... .......... .......... .......... 5.06M 27300K .......... .......... .......... .......... .......... 4.78M 27350K .......... .......... .......... .......... .......... 4.62M 27400K .......... .......... .......... .......... .......... 4.27M 27450K .......... .......... .......... .......... .......... 53.6M 27500K .......... .......... .......... .......... .......... 5.08M 27550K .......... .......... .......... .......... .......... 5.46M 27600K .......... .......... .......... .......... .......... 6.41M 27650K .......... .......... .......... .......... .......... 5.38M 27700K .......... .......... .......... .......... .......... 5.18M 27750K .......... .......... .......... .......... .......... 4.73M 27800K .......... .......... .......... .......... .......... 4.84M 27850K .......... .......... .......... .......... .......... 54.5M 27900K .......... .......... .......... .......... .......... 4.97M 27950K .......... .......... .......... .......... .......... 5.29M 28000K .......... .......... .......... .......... .......... 5.79M 28050K .......... .......... .......... .......... .......... 5.79M 28100K .......... .......... .......... .......... .......... 3.71M 28150K .......... .......... .......... .......... .......... 3.94M 28200K .......... .......... .......... .......... .......... 67.1M 28250K .......... .......... .......... .......... .......... 4.01M 28300K .......... .......... .......... .......... .......... 3.38M 28350K .......... .......... .......... .......... .......... 5.55M 28400K .......... .......... .......... .......... .......... 5.65M 28450K .......... .......... .......... .......... .......... 4.62M 28500K .......... .......... .......... .......... .......... 5.12M 28550K .......... .......... .......... .......... .......... 61.3M 28600K .......... .......... .......... .......... .......... 4.50M 28650K .......... .......... .......... .......... .......... 4.66M 28700K .......... .......... .......... .......... .......... 5.04M 28750K .......... .......... .......... .......... .......... 4.89M 28800K .......... .......... .......... .......... .......... 5.72M 28850K .......... .......... .......... .......... .......... 5.18M 28900K .......... .......... .......... .......... .......... 57.8M 28950K .......... .......... .......... .......... .......... 5.85M 29000K .......... .......... .......... .......... .......... 6.89M 29050K .......... .......... .......... .......... .......... 6.06M 29100K .......... .......... .......... .......... .......... 3.73M 29150K .......... .......... .......... .......... .......... 76.6M 29200K .......... .......... .......... .......... .......... 2.59M 29250K .......... .......... .......... .......... .......... 56.7M 29300K .......... .......... .......... .......... .......... 4.45M 29350K .......... .......... .......... .......... .......... 3.80M 29400K .......... .......... .......... .......... .......... 5.47M 29450K .......... .......... .......... .......... .......... 5.38M 29500K .......... .......... .......... .......... .......... 4.93M 29550K .......... .......... .......... .......... .......... 80.0M 29600K .......... .......... .......... .......... .......... 2.83M 29650K .......... .......... .......... .......... .......... 54.2M 29700K .......... .......... .......... .......... .......... 5.12M 29750K .......... .......... .......... .......... .......... 5.66M 29800K .......... .......... .......... .......... .......... 2.07M 29850K .......... .......... .......... .......... .......... 67.0M 29900K .......... .......... .......... .......... .......... 4.07M 29950K .......... .......... .......... .......... .......... 82.0M 30000K .......... .......... .......... .......... .......... 16.5M 30050K .......... .......... .......... .......... .......... 6.13M 30100K .......... .......... .......... .......... .......... 5.36M 30150K .......... .......... .......... .......... .......... 4.94M 30200K .......... .......... .......... .......... .......... 5.43M 30250K .......... .......... .......... .......... .......... 78.4M 30300K .......... .......... .......... .......... .......... 5.84M 30350K .......... .......... .......... .......... .......... 5.20M 30400K .......... .......... .......... .......... .......... 4.67M 30450K .......... .......... .......... .......... .......... 4.50M 30500K .......... .......... .......... .......... .......... 5.59M 30550K .......... .......... .......... .......... .......... 4.63M 30600K .......... .......... .......... .......... .......... 4.79M 30650K .......... .......... .......... .......... .......... 55.1M 30700K .......... .......... .......... .......... .......... 5.58M 30750K .......... .......... .......... .......... .......... 5.99M 30800K .......... .......... .......... .......... .......... 2.93M 30850K .......... .......... .......... .......... .......... 6.32M 30900K .......... .......... .......... .......... .......... 74.7M 30950K .......... .......... .......... .......... .......... 5.93M 31000K .......... .......... .......... .......... .......... 6.07M 31050K .......... .......... .......... .......... .......... 5.79M 31100K .......... .......... .......... .......... .......... 64.0M 31150K .......... .......... .......... .......... .......... 5.33M 31200K .......... .......... .......... .......... .......... 5.40M 31250K .......... .......... .......... .......... .......... 5.90M 31300K .......... .......... .......... .......... .......... 5.80M 31350K .......... .......... .......... .......... .......... 5.53M 31400K .......... .......... .......... .......... .......... 6.02M 31450K .......... .......... .......... .......... .......... 5.71M 31500K .......... .......... .......... .......... .......... 70.1M 31550K .......... .......... .......... .......... .......... 4.26M 31600K .......... .......... .......... .......... .......... 5.46M 31650K .......... .......... .......... .......... .......... 4.04M 31700K .......... .......... .......... .......... .......... 5.82M 31750K .......... .......... .......... .......... .......... 5.65M 31800K .......... .......... .......... .......... .......... 5.30M 31850K .......... .......... .......... .......... .......... 60.6M 31900K .......... .......... .......... .......... .......... 5.76M 31950K .......... .......... .......... .......... .......... 4.52M 32000K .......... .......... .......... .......... .......... 5.46M 32050K .......... .......... .......... .......... .......... 5.55M 32100K .......... .......... .......... .......... .......... 5.81M 32150K .......... .......... .......... .......... .......... 5.26M 32200K .......... .......... .......... .......... .......... 5.45M 32250K .......... .......... .......... .......... .......... 71.6M 32300K .......... .......... .......... .......... .......... 5.63M 32350K .......... .......... .......... .......... .......... 5.52M 32400K .......... .......... .......... .......... .......... 4.71M 32450K .......... .......... .......... .......... .......... 3.18M 32500K .......... .......... .......... .......... .......... 17.0M 32550K .......... .......... .......... .......... .......... 4.77M 32600K .......... .......... .......... .......... .......... 5.21M 32650K .......... .......... .......... .......... .......... 73.1M 32700K .......... .......... .......... .......... .......... 5.00M 32750K .......... .......... .......... .......... .......... 5.48M 32800K .......... .......... .......... .......... .......... 5.23M 32850K .......... .......... .......... .......... .......... 5.76M 32900K .......... .......... .......... .......... .......... 5.07M 32950K .......... .......... .......... .......... .......... 5.36M 33000K .......... .......... .......... .......... .......... 58.7M 33050K .......... .......... .......... .......... .......... 5.70M 33100K .......... .......... .......... .......... .......... 6.05M 33150K .......... .......... .......... .......... .......... 5.24M 33200K .......... .......... .......... .......... .......... 5.29M 33250K .......... .......... .......... .......... .......... 6.07M 33300K .......... .......... .......... .......... .......... 4.76M 33350K .......... .......... .......... .......... .......... 5.35M 33400K .......... .......... .......... .......... .......... 60.1M 33450K .......... .......... .......... .......... .......... 5.16M 33500K .......... .......... .......... .......... .......... 4.52M 33550K .......... .......... .......... .......... .......... 5.80M 33600K .......... .......... .......... .......... .......... 5.69M 33650K .......... .......... .......... .......... .......... 5.47M 33700K .......... .......... .......... .......... .......... 4.66M 33750K .......... .......... .......... .......... .......... 6.24M 33800K .......... .......... .......... .......... .......... 59.5M 33850K .......... .......... .......... .......... .......... 5.77M 33900K .......... .......... .......... .......... .......... 4.95M 33950K .......... .......... .......... .......... .......... 4.75M 34000K .......... .......... .......... .......... .......... 5.56M 34050K .......... .......... .......... .......... .......... 5.09M 34100K .......... .......... .......... .......... .......... 5.59M 34150K .......... .......... .......... .......... .......... 4.86M 34200K .......... .......... .......... .......... .......... 62.2M 34250K .......... .......... .......... .......... .......... 4.71M 34300K .......... .......... .......... .......... .......... 4.59M 34350K .......... .......... .......... .......... .......... 4.99M 34400K .......... .......... .......... .......... .......... 4.77M 34450K .......... .......... .......... .......... .......... 4.64M 34500K .......... .......... .......... .......... .......... 4.93M 34550K .......... .......... .......... .......... .......... 55.8M 34600K .......... .......... .......... .......... .......... 5.06M 34650K .......... .......... .......... .......... .......... 1.62M 34700K .......... .......... .......... .......... .......... 11.9M 34750K .......... .......... .......... .......... .......... 8.02M 34800K .......... .......... .......... .......... .......... 5.45M 34850K .......... .......... .......... .......... .......... 7.55M 34900K .......... .......... .......... .......... .......... 4.70M 34950K .......... .......... .......... .......... .......... 4.01M 35000K .......... .......... .......... .......... .......... 5.42M 35050K .......... .......... .......... .......... .......... 15.2M 35100K .......... .......... .......... .......... .......... 5.94M 35150K .......... .......... .......... .......... .......... 5.95M 35200K .......... .......... .......... .......... .......... 3.72M 35250K .......... .......... .......... .......... .......... 12.8M 35300K .......... .......... .......... .......... .......... 11.8M 35350K .......... .......... .......... .......... .......... 13.5M 35400K .......... .......... .......... .......... .......... 15.1M 35450K .......... .......... .......... .......... .......... 19.0M 35500K .......... .......... .......... .......... .......... 6.97M 35550K .......... .......... .......... .......... .......... 4.66M 35600K .......... .......... .......... .......... .......... 2.08M 35650K .......... .......... .......... .......... .......... 3.96M 35700K .......... .......... .......... .......... .......... 2.92M 35750K .......... .......... .......... .......... .......... 10.5M 35800K .......... .......... .......... .......... .......... 2.95M 35850K .......... .......... .......... .......... .......... 7.83M 35900K .......... .......... .......... .......... .......... 8.19M 35950K .......... .......... .......... .......... .......... 6.90M 36000K .......... .......... .......... .......... .......... 4.68M 36050K .......... .......... .......... .......... .......... 9.95M 36100K .......... .......... .......... .......... .......... 4.24M 36150K .......... .......... .......... .......... .......... 12.7M 36200K .......... .......... .......... .......... .......... 5.79M 36250K .......... .......... .......... .......... .......... 2.79M 36300K .......... .......... .......... .......... .......... 8.30M 36350K .......... .......... .......... .......... .......... 11.7M 36400K .......... .......... .......... .......... .......... 11.4M 36450K .......... .......... .......... .......... .......... 14.5M 36500K .......... .......... .......... .......... .......... 9.71M 36550K .......... .......... .......... .......... .......... 11.4M 36600K .......... .......... .......... .......... .......... 3.22M 36650K .......... .......... .......... .......... .......... 11.3M 36700K .......... .......... .......... .......... .......... 4.34M 36750K .......... .......... .......... .......... .......... 3.65M 36800K .......... .......... .......... .......... .......... 3.21M 36850K .......... .......... .......... .......... .......... 57.2M 36900K .......... .......... .......... .......... .......... 4.74M 36950K .......... .......... .......... .......... .......... 5.81M 37000K .......... .......... .......... .......... .......... 5.60M 37050K .......... .......... .......... .......... .......... 5.32M 37100K .......... .......... .......... .......... .......... 5.62M 37150K .......... .......... .......... .......... .......... 75.1M 37200K .......... .......... .......... .......... .......... 2.85M 37250K .......... .......... .......... .......... .......... 56.2M 37300K .......... .......... .......... .......... .......... 5.22M 37350K .......... .......... .......... .......... .......... 5.40M 37400K .......... .......... .......... .......... .......... 5.45M 37450K .......... .......... .......... .......... .......... 6.48M 37500K .......... .......... .......... .......... .......... 6.11M 37550K .......... .......... .......... .......... .......... 5.62M 37600K .......... .......... .......... .......... .......... 5.45M 37650K .......... .......... .......... .......... .......... 57.5M 37700K .......... .......... .......... .......... .......... 5.60M 37750K .......... .......... .......... .......... .......... 5.06M 37800K .......... .......... .......... .......... .......... 6.01M 37850K .......... .......... .......... .......... .......... 5.57M 37900K .......... .......... .......... .......... .......... 5.75M 37950K .......... .......... .......... .......... .......... 71.3M 38000K .......... .......... .......... .......... .......... 2.81M 38050K .......... .......... .......... .......... .......... 60.3M 38100K .......... .......... .......... .......... .......... 5.28M 38150K .......... .......... .......... .......... .......... 4.90M 38200K .......... .......... .......... .......... .......... 5.03M 38250K .......... .......... .......... .......... .......... 4.94M 38300K .......... .......... .......... .......... .......... 77.1M 38350K .......... .......... .......... .......... .......... 5.72M 38400K .......... .......... .......... .......... .......... 4.83M 38450K .......... .......... .......... .......... .......... 4.77M 38500K .......... .......... .......... .......... .......... 4.86M 38550K .......... .......... .......... .......... .......... 5.38M 38600K .......... .......... .......... .......... .......... 5.67M 38650K .......... .......... .......... .......... .......... 63.3M 38700K .......... .......... .......... .......... .......... 4.87M 38750K .......... .......... .......... .......... .......... 4.75M 38800K .......... .......... .......... .......... .......... 4.68M 38850K .......... .......... .......... .......... .......... 5.80M 38900K .......... .......... .......... .......... .......... 3.51M 38950K .......... .......... .......... .......... .......... 8.71M 39000K .......... .......... .......... .......... .......... 44.7M 39050K .......... .......... .......... .......... .......... 5.40M 39100K .......... .......... .......... .......... .......... 5.60M 39150K .......... .......... .......... .......... .......... 5.19M 39200K .......... .......... .......... .......... .......... 5.47M 39250K .......... .......... .......... .......... .......... 5.17M 39300K .......... .......... .......... .......... .......... 5.27M 39350K .......... .......... .......... .......... .......... 5.18M 39400K .......... .......... .......... .......... .......... 57.2M 39450K .......... .......... .......... .......... .......... 5.23M 39500K .......... .......... .......... .......... .......... 5.97M 39550K .......... .......... .......... .......... .......... 5.69M 39600K .......... .......... .......... .......... .......... 5.41M 39650K .......... .......... .......... .......... .......... 5.49M 39700K .......... .......... .......... .......... .......... 5.53M 39750K .......... .......... .......... .......... .......... 5.01M 39800K .......... .......... .......... .......... .......... 59.9M 39850K .......... .......... .......... .......... .......... 5.61M 39900K .......... .......... .......... .......... .......... 5.33M 39950K .......... .......... .......... .......... .......... 5.57M 40000K .......... .......... .......... .......... .......... 5.94M 40050K .......... .......... .......... .......... .......... 5.23M 40100K .......... .......... .......... .......... .......... 5.97M 40150K .......... .......... .......... .......... .......... 5.71M 40200K .......... .......... .......... .......... .......... 69.2M 40250K .......... .......... .......... .......... .......... 5.54M 40300K .......... .......... .......... .......... .......... 5.55M 40350K .......... .......... .......... .......... .......... 5.49M 40400K .......... .......... .......... .......... .......... 6.01M 40450K .......... .......... .......... .......... .......... 5.65M 40500K .......... .......... .......... .......... .......... 5.51M 40550K .......... .......... .......... .......... .......... 4.80M 40600K .......... .......... .......... .......... .......... 47.9M 40650K .......... .......... .......... .......... .......... 3.44M 40700K .......... .......... .......... .......... .......... 5.41M 40750K .......... .......... .......... .......... .......... 5.04M 40800K .......... .......... .......... .......... .......... 5.44M 40850K .......... .......... .......... .......... .......... 5.40M 40900K .......... .......... .......... .......... .......... 5.43M 40950K .......... .......... .......... .......... .......... 67.6M 41000K .......... .......... .......... .......... .......... 5.66M 41050K .......... .......... .......... .......... .......... 5.22M 41100K .......... .......... .......... .......... .......... 5.21M 41150K .......... .......... .......... .......... .......... 5.54M 41200K .......... .......... .......... .......... .......... 4.91M 41250K .......... .......... .......... .......... .......... 5.41M 41300K .......... .......... .......... .......... .......... 4.92M 41350K .......... .......... .......... .......... .......... 70.0M 41400K .......... .......... .......... .......... .......... 6.34M 41450K .......... .......... .......... .......... .......... 7.04M 41500K .......... .......... .......... .......... .......... 7.07M 41550K .......... .......... .......... .......... .......... 5.03M 41600K .......... .......... .......... .......... .......... 5.77M 41650K .......... .......... .......... .......... .......... 5.53M 41700K .......... .......... .......... .......... .......... 5.84M 41750K .......... .......... .......... .......... .......... 5.71M 41800K .......... .......... .......... .......... .......... 66.3M 41850K .......... .......... .......... .......... .......... 5.58M 41900K .......... .......... .......... .......... .......... 5.55M 41950K .......... .......... .......... .......... .......... 5.69M 42000K .......... .......... .......... .......... .......... 5.75M 42050K .......... .......... .......... .......... .......... 5.64M 42100K .......... .......... .......... .......... .......... 5.35M 42150K .......... .......... .......... .......... .......... 38.4M 42200K .......... .......... .......... .......... .......... 4.73M 42250K .......... .......... .......... .......... .......... 3.82M 42300K .......... .......... .......... .......... .......... 4.88M 42350K .......... .......... .......... .......... .......... 5.78M 42400K .......... .......... .......... .......... .......... 4.89M 42450K .......... .......... .......... .......... .......... 5.26M 42500K .......... .......... .......... .......... .......... 53.3M 42550K .......... .......... .......... .......... .......... 5.29M 42600K .......... .......... .......... .......... .......... 5.34M 42650K .......... .......... .......... .......... .......... 5.64M 42700K .......... .......... .......... .......... .......... 5.75M 42750K .......... .......... .......... .......... .......... 5.77M 42800K .......... .......... .......... .......... .......... 6.31M 42850K .......... .......... .......... .......... .......... 5.84M 42900K .......... .......... .......... .......... .......... 63.0M 42950K .......... .......... .......... .......... .......... 5.09M 43000K .......... .......... .......... .......... .......... 4.99M 43050K .......... .......... .......... .......... .......... 5.06M 43100K .......... .......... .......... .......... .......... 5.62M 43150K .......... .......... .......... .......... .......... 5.21M 43200K .......... .......... .......... .......... .......... 5.02M 43250K .......... .......... .......... .......... .......... 5.28M 43300K .......... .......... .......... .......... .......... 57.9M 43350K .......... .......... .......... .......... .......... 5.43M 43400K .......... .......... .......... .......... .......... 5.57M 43450K .......... .......... .......... .......... .......... 5.41M 43500K .......... .......... .......... .......... .......... 5.71M 43550K .......... .......... .......... .......... .......... 6.45M 43600K .......... .......... .......... .......... .......... 22.4M 43650K .......... .......... .......... .......... .......... 5.59M 43700K .......... .......... .......... .......... .......... 5.71M 43750K .......... .......... .......... .......... .......... 1.08M 43800K .......... .......... .......... .......... .......... 2.41M 43850K .......... .......... .......... .......... .......... 3.20M 43900K .......... .......... .......... .......... .......... 53.9M 43950K .......... .......... .......... .......... .......... 3.61M 44000K .......... .......... .......... .......... .......... 3.82M 44050K .......... .......... .......... .......... .......... 3.87M 44100K .......... .......... .......... .......... .......... 4.09M 44150K .......... .......... .......... .......... .......... 4.01M 44200K .......... .......... .......... .......... .......... 3.72M 44250K .......... .......... .......... .......... .......... 77.9M 44300K .......... .......... .......... .......... .......... 4.96M 44350K .......... .......... .......... .......... .......... 4.80M 44400K .......... .......... .......... .......... .......... 4.83M 44450K .......... .......... .......... .......... .......... 5.27M 44500K .......... .......... .......... .......... .......... 5.27M 44550K .......... .......... .......... .......... .......... 4.56M 44600K .......... .......... .......... .......... .......... 64.2M 44650K .......... .......... .......... .......... .......... 5.10M 44700K .......... .......... .......... .......... .......... 4.90M 44750K .......... .......... .......... .......... .......... 5.17M 44800K .......... .......... .......... .......... .......... 5.21M 44850K .......... .......... .......... .......... .......... 5.23M 44900K .......... .......... .......... .......... .......... 56.4M 44950K .......... .......... .......... .......... .......... 5.16M 45000K .......... .......... .......... .......... .......... 5.19M 45050K .......... .......... .......... .......... .......... 6.23M 45100K .......... .......... .......... .......... .......... 5.06M 45150K .......... .......... .......... .......... .......... 4.96M 45200K .......... .......... .......... .......... .......... 5.16M 45250K .......... .......... .......... .......... .......... 5.04M 45300K .......... .......... .......... .......... .......... 55.2M 45350K .......... .......... .......... .......... .......... 4.85M 45400K .......... .......... .......... .......... .......... 5.28M 45450K .......... .......... .......... .......... .......... 4.58M 45500K .......... .......... .......... .......... .......... 4.70M 45550K .......... .......... .......... .......... .......... 83.4M 45600K .......... .......... .......... .......... .......... 4.44M 45650K .......... .......... .......... .......... .......... 4.34M 45700K .......... .......... .......... .......... .......... 4.89M 45750K .......... .......... .......... .......... .......... 2.14M 45800K .......... .......... .......... .......... .......... 2.51M 45850K .......... .......... .......... .......... .......... 44.2M 45900K .......... .......... .......... .......... .......... 2.53M 45950K .......... .......... .......... .......... .......... 2.51M 46000K .......... .......... .......... .......... .......... 2.46M 46050K .......... .......... .......... .......... .......... 2.55M 46100K .......... .......... .......... .......... .......... 36.4M 46150K .......... .......... .......... .......... .......... 2.41M 46200K .......... .......... .......... .......... .......... 4.03M 46250K .......... .......... .......... .......... .......... 6.69M 46300K .......... .......... .......... .......... .......... 5.35M 46350K .......... .......... .......... .......... .......... 5.38M 46400K .......... .......... .......... .......... .......... 5.48M 46450K .......... .......... .......... .......... .......... 40.1M 46500K .......... .......... .......... .......... .......... 6.04M 46550K .......... .......... .......... .......... .......... 5.78M 46600K .......... .......... .......... .......... .......... 6.50M 46650K .......... .......... .......... .......... .......... 12.8M 46700K .......... .......... .......... .......... .......... 5.55M 46750K .......... .......... .......... .......... .......... 5.23M 46800K .......... .......... .......... .......... .......... 5.73M 46850K .......... .......... .......... .......... .......... 4.74M 46900K .......... .......... .......... .......... .......... 5.35M 46950K .......... .......... .......... .......... .......... 4.68M 47000K .......... .......... .......... .......... .......... 43.0M 47050K .......... .......... .......... .......... .......... 7.76M 47100K .......... .......... .......... .......... .......... 7.64M 47150K .......... .......... .......... .......... .......... 6.42M 47200K .......... .......... .......... .......... .......... 5.08M 47250K .......... .......... .......... .......... .......... 4.70M 47300K .......... .......... .......... .......... .......... 5.26M 47350K .......... .......... .......... .......... .......... 38.2M 47400K .......... .......... .......... .......... .......... 4.10M 47450K .......... .......... .......... .......... .......... 44.7M 47500K .......... .......... .......... .......... .......... 32.3M 47550K .......... .......... .......... .......... .......... 45.0M 47600K .......... .......... .......... .......... .......... 21.3M 47650K .......... .......... .......... .......... .......... 11.0M 47700K .......... .......... .......... .......... .......... 7.12M 47750K .......... .......... .......... .......... .......... 15.8M 47800K .......... .......... .......... .......... .......... 9.99M 47850K .......... .......... .......... .......... .......... 14.2M 47900K .......... .......... .......... .......... .......... 10.6M 47950K .......... .......... .......... .......... .......... 10.5M 48000K .......... .......... .......... .......... .......... 5.62M 48050K .......... .......... .......... .......... .......... 4.74M 48100K .......... .......... .......... .......... .......... 46.0M 48150K .......... .......... .......... .......... .......... 5.03M 48200K .......... .......... .......... .......... .......... 5.32M 48250K .......... .......... .......... .......... .......... 4.90M 48300K .......... .......... .......... .......... .......... 5.09M 48350K .......... .......... .......... .......... .......... 47.0M 48400K .......... .......... .......... .......... .......... 4.99M 48450K .......... .......... .......... .......... .......... 5.41M 48500K .......... .......... .......... .......... .......... 5.51M 48550K .......... .......... .......... .......... .......... 5.63M 48600K .......... .......... .......... .......... .......... 5.56M 48650K .......... .......... .......... .......... .......... 4.91M 48700K .......... .......... .......... .......... .......... 49.2M 48750K .......... .......... .......... .......... .......... 2.93M 48800K .......... .......... .......... .......... .......... 3.12M 48850K .......... .......... .......... .......... .......... 45.3M 48900K .......... .......... .......... .......... .......... 6.52M 48950K .......... .......... .......... .......... .......... 6.65M 49000K .......... .......... .......... .......... .......... 7.06M 49050K .......... .......... .......... .......... .......... 35.2M 49100K .......... .......... .......... .......... .......... 5.81M 49150K .......... .......... .......... .......... .......... 5.16M 49200K .......... .......... .......... .......... .......... 5.79M 49250K .......... .......... .......... .......... .......... 6.43M 49300K .......... .......... .......... .......... .......... 4.89M 49350K .......... .......... .......... .......... .......... 6.36M 49400K .......... .......... .......... .......... ...... 1.81M=8.7s 2020-04-07 05:14:08 (5.57 MB/s) - '/home/buildroot/autobuild/instance-1/output-1/build/.mongodb-r4.0.12.tar.gz.dV4009/output' saved [50633344] mongodb-r4.0.12.tar.gz: OK (sha256: b39c5b7bb77a547804ab6f43f9b5f09add47574356b31512fd1cc641a08b4ea5) >>> mongodb r4.0.12 Extracting gzip -d -c /home/buildroot/autobuild/instance-1/dl/mongodb/mongodb-r4.0.12.tar.gz | tar --strip-components=1 -C /home/buildroot/autobuild/instance-1/output-1/build/mongodb-r4.0.12 -xf - >>> mongodb r4.0.12 Patching Applying 0001-ssl_manager.cpp-fix-build-with-gcc-7-and-fpermissive.patch using patch: patching file src/mongo/util/net/ssl_manager.cpp Hunk #1 succeeded at 410 (offset -372 lines). Hunk #2 succeeded at 427 (offset -372 lines). Hunk #3 succeeded at 472 (offset -372 lines). >>> mongodb r4.0.12 Configuring >>> mongodb r4.0.12 Building (cd /home/buildroot/autobuild/instance-1/output-1/build/mongodb-r4.0.12; /home/buildroot/autobuild/instance-1/output-1/host/bin/python /home/buildroot/autobuild/instance-1/output-1/host/bin/scons CC="/home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc" CXX="/home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++" -j"4" --disable-warnings-as-errors --use-system-boost --use-system-pcre --use-system-snappy --use-system-sqlite --use-system-yaml --use-system-zlib MONGO_VERSION=4.0.12- --wiredtiger=off --js-engine=none --allocator=system --enable-free-mon=on --ssl --ssl-provider=openssl mongod mongos) scons: Reading SConscript files ... Mkdir("build/scons") scons version: 3.1.2 python version: 2 7 17 'final' 0 Checking whether the C compiler works... yes Checking whether the C++ compiler works... yes Checking that the C++ compiler can link a C++ program... yes Checking if C++ compiler "/home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++" is GCC... yes Checking if C compiler "/home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc" is GCC... yes Detected a arm processor Checking if target OS linux is supported by the toolchain... yes Checking if C compiler is GCC 5.3.0 or newer...yes Checking if C++ compiler is GCC 5.3.0 or newer...yes Checking if C compiler supports -Wno-unused-local-typedefs... yes Checking if C compiler supports -Wno-unused-function... yes Checking if C compiler supports -Wno-unused-private-field... no Checking if C compiler supports -Wno-deprecated-declarations... yes Checking if C compiler supports -Wno-tautological-constant-out-of-range-compare... no Checking if C compiler supports -Wno-tautological-constant-compare... no Checking if C compiler supports -Wno-tautological-unsigned-zero-compare... no Checking if C compiler supports -Wno-tautological-unsigned-enum-zero-compare... no Checking if C compiler supports -Wno-unused-const-variable... yes Checking if C compiler supports -Wno-unused-but-set-variable... yes Checking if C compiler supports -Wno-missing-braces... yes Checking if C compiler supports -Wno-inconsistent-missing-override... no Checking if C compiler supports -Wno-potentially-evaluated-expression... no Checking if C++ compiler supports -Wpessimizing-move... yes Checking if C++ compiler supports -Wredundant-move... yes Checking if C++ compiler supports -Wno-maybe-uninitialized... yes Checking if C++ compiler supports -Wno-undefined-var-template... no Checking if C++ compiler supports -Wno-instantiation-after-specialization... no Checking if C compiler supports -Wno-unused-lambda-capture... no Checking if C compiler supports -Wno-exceptions... no Checking -Wnon-virtual-dtor for false positives... no Checking if C compiler supports -fstack-protector-strong... yes Checking if we are using libstdc++... yes Checking if C++ compiler supports -std=c++14... yes Checking if C compiler supports -std=c11... yes WARNING: System versions of C++ libraries must be compiled with C++14 support Checking for C++14... yes Checking for memset_s... no Checking for C function strnlen()... yes Checking for libstdc++ 5.3.0 or better... yes Checking if we are on a POSIX system... yes Checking if the POSIX monotonic clock is supported... yes Checking off_t is 8 bytes... no Checking if linker supports -fuse-ld=gold... no Checking if linker supports -Wl,--build-id... yes Checking if linker supports -Wl,--hash-style=gnu... yes Checking if linker supports -Wl,-z,noexecstack... yes Checking if linker supports -Wl,--warn-execstack... no Checking if linker supports -Wl,-z,relro... yes Checking for glibc with non-broken _FORTIFY_SOURCE...yes Checking if C compiler supports -fno-builtin-memcmp... yes Checking for storage class thread_local yes Checking for C++14 std::enable_if_t support...yes Checking for C++14 std::make_unique support... yes Checking if pthread_setname_np is supported... yes Checking for SSLeay_version(0) in C library crypto... yes Checking for SSL_version(NULL) in C library ssl... yes Checking that linking to OpenSSL works...yes Checking whether FIPS_mode_set is declared... yes Checking whether d2i_ASN1_SEQUENCE_ANY is declared... yes Checking if SSL_[CTX_]_set_ecdh_auto is supported... yes Using SSL Provider: openssl Checking for curl_global_init(0) in C library curl... yes Checking for C library pcre... yes Checking for C library pcrecpp... yes Checking for C library snappy... yes Checking for C library z... yes Checking for C library yaml-cpp... yes Checking for C++ header file sqlite3.h... yes Checking for C library sqlite3... yes Checking for C++ header file boost/filesystem/operations.hpp... yes Checking if system boost version is 1.49 or newer...yes Checking for C++ library boost_filesystem-mt... no Checking for C++ library boost_filesystem... yes Checking for C++ library boost_program_options-mt... no Checking for C++ library boost_program_options... yes Checking for C++ library boost_system-mt... no Checking for C++ library boost_system... yes Checking for C++ library boost_iostreams-mt... no Checking for C++ library boost_iostreams... yes Checking for C library rt... yes Checking for C library dl... yes Checking for C++ header file execinfo.h... yes Checking whether backtrace is declared... yes Checking whether backtrace_symbols is declared... yes Checking whether backtrace_symbols_fd is declared... yes Checking for C library pcap... yes Checking if std::atomic works... yes Checking if std::atomic works... yes Checking if std::atomic works... yes Checking if std::atomic works... yes Checking for extended alignment 64 for concurrency types... yes Checking for mongoc_get_major_version() in C library mongoc-1.0... no *** Run 'pip2 install --user regex' to speed up error code checking scons: done reading SConscript files. scons: Building targets ... /home/buildroot/autobuild/instance-1/output-1/host/bin/python src/mongo/base/generate_error_codes.py src/mongo/base/error_codes.err src/mongo/base/error_codes.tpl.h=build/opt/mongo/base/error_codes.h src/mongo/base/error_codes.tpl.cpp=build/opt/mongo/base/error_codes.cpp Creating 'build/opt/mongo/config.h' /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/ops/write_ops_gen.h --output build/opt/mongo/db/ops/write_ops_gen.cpp src/mongo/db/ops/write_ops.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/database_version_gen.h --output build/opt/mongo/s/database_version_gen.cpp src/mongo/s/database_version.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/logical_session_id_gen.h --output build/opt/mongo/db/logical_session_id_gen.cpp src/mongo/db/logical_session_id.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/generic_cursor_gen.h --output build/opt/mongo/db/generic_cursor_gen.cpp src/mongo/db/generic_cursor.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/cluster_last_error_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/cluster_last_error_info.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python src/mongo/db/auth/generate_action_types.py src/mongo/db/auth/action_types.txt build/opt/mongo/db/auth/action_type.h build/opt/mongo/db/auth/action_type.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/query/tailable_mode_gen.h --output build/opt/mongo/db/query/tailable_mode_gen.cpp src/mongo/db/query/tailable_mode.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/catalog/type_chunk_base_gen.h --output build/opt/mongo/s/catalog/type_chunk_base_gen.cpp src/mongo/s/catalog/type_chunk_base.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/refresh_sessions_gen.h --output build/opt/mongo/db/refresh_sessions_gen.cpp src/mongo/db/refresh_sessions.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_drop_collection_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_drop_collection_command.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/logical_session_cache_stats_gen.h --output build/opt/mongo/db/logical_session_cache_stats_gen.cpp src/mongo/db/logical_session_cache_stats.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/commands/end_sessions_gen.h --output build/opt/mongo/db/commands/end_sessions_gen.cpp src/mongo/db/commands/end_sessions.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/kill_sessions_gen.h --output build/opt/mongo/db/kill_sessions_gen.cpp src/mongo/db/kill_sessions.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_id_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_session_id_helpers.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/near.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/near.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/near.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/near.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/near.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/near.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/msgfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/msgfmt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/scatter_gather_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/scatter_gather_runner.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/coleitr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/coleitr.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/query/async_results_merger_params_gen.h --output build/opt/mongo/s/query/async_results_merger_params_gen.cpp src/mongo/s/query/async_results_merger_params.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/change_stream_proxy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/change_stream_proxy.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_ct.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_ct.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/esctrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/esctrn.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/dbclientcursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/dbclientcursor.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/change_stream_proxy.h:32, from src/mongo/db/exec/change_stream_proxy.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_collection_command.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/change_stream_proxy.h:32, from src/mongo/db/exec/change_stream_proxy.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/change_stream_proxy.h:32, from src/mongo/db/exec/change_stream_proxy.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/change_stream_proxy.h:32, from src/mongo/db/exec/change_stream_proxy.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/near.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/exec/near.h:34, from src/mongo/db/exec/near.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {}; _Tp = mongo::IntervalStats; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/client/dbclientcursor.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/client/dbclientcursor.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:62, from src/mongo/db/exec/near.h:34, from src/mongo/db/exec/near.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator > >; _Distance = int; _Tp = mongo::NearStage::SearchResult; _Compare = __gnu_cxx::__ops::_Iter_comp_val >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:128:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 128 | __push_heap(_RandomAccessIterator __first, | ^~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/exec/near.h:34, from src/mongo/db/exec/near.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::NearStage::SearchResult}; _Tp = mongo::NearStage::SearchResult; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::PlanStage::StageState mongo::NearStage::bufferNext(mongo::WorkingSetID*, mongo::Status*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/client/dbclientcursor.cpp:43: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/client/dbclientcursor.cpp:43: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_round.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_round.c /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/oplog_entry_gen.h --output build/opt/mongo/db/repl/oplog_entry_gen.cpp src/mongo/db/repl/oplog_entry.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/initial_syncer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/initial_syncer.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/startup_warnings_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/startup_warnings_mongod.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/change_stream_proxy.h:32, from src/mongo/db/exec/change_stream_proxy.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/client/dbclientcursor.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/initial_syncer.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/initial_syncer.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/initial_syncer.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/initial_syncer.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/current_op_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/current_op_common.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/index_bounds_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/index_bounds_builder.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/batched_command_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/write_ops/batched_command_response.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/index_bounds_builder.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/index_bounds_builder.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/index_bounds_builder.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op_common.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/index_bounds_builder.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op_common.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op_common.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op_common.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/write_ops/batched_command_response.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/write_ops/batched_command_response.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/write_ops/batched_command_response.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/initial_syncer.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/write_ops/batched_command_response.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op_common.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/index_bounds_builder.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/write_ops/batched_command_response.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/service_liaison_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/service_liaison_mongos.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/collation/collator_factory_icu_decoration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_factory_icu_decoration.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/resource.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/resource.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/fts_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/fts_access_method.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/curop_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/curop_metrics.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/db/service_liaison_mongos.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/db/service_liaison_mongos.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/tailable_mode_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/query/tailable_mode_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/db/service_liaison_mongos.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/db/service_liaison_mongos.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/session_txn_record_gen.h --output build/opt/mongo/db/session_txn_record_gen.cpp src/mongo/db/session_txn_record.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/transactions_stats_gen.h --output build/opt/mongo/db/transactions_stats_gen.cpp src/mongo/db/transactions_stats.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/session.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_metrics.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_metrics.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_metrics.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_metrics.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/tailable_mode_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/tailable_mode_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/tailable_mode_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/tailable_mode_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/db/service_liaison_mongos.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libservice_liaison_mongos.a build/opt/mongo/db/service_liaison_mongos.o Skipping ranlib for thin archive build/opt/mongo/db/libservice_liaison_mongos.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/write_ops_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/ops/write_ops_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_metrics.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/query/tailable_mode_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libcurop_metrics.a build/opt/mongo/db/curop_metrics.o Skipping ranlib for thin archive build/opt/mongo/db/libcurop_metrics.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/field_ref.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/field_ref.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/extensions_callback_real.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/extensions_callback_real.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logb.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logb.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cos.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cos.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/generic.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/generic.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/write_ops_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/write_ops_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/write_ops_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/write_ops_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_real.h:33, from src/mongo/db/matcher/extensions_callback_real.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_real.h:33, from src/mongo/db/matcher/extensions_callback_real.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_real.h:33, from src/mongo/db/matcher/extensions_callback_real.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/extensions_callback_real.cpp: In member function 'virtual mongo::StatusWithMatchExpression mongo::ExtensionsCallbackReal::parseText(mongo::BSONElement) const': src/mongo/db/matcher/extensions_callback_real.cpp:44:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 44 | StatusWithMatchExpression ExtensionsCallbackReal::parseText(BSONElement text) const { | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/extensions_callback_real.cpp:45:60: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 45 | auto textParams = extractTextMatchExpressionParams(text); | ^ src/mongo/db/matcher/extensions_callback_real.cpp: In member function 'virtual mongo::StatusWithMatchExpression mongo::ExtensionsCallbackReal::parseWhere(mongo::BSONElement) const': src/mongo/db/matcher/extensions_callback_real.cpp:56:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 56 | StatusWithMatchExpression ExtensionsCallbackReal::parseWhere(BSONElement where) const { | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/extensions_callback_real.cpp:57:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 57 | auto whereParams = extractWhereMatchExpressionParams(where); | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/pipeline_proxy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/pipeline_proxy.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/write_ops_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/pipeline_proxy.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/pipeline_proxy.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/pipeline_proxy.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/pipeline_proxy.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/scripting/utils.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/scripting/engine.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/dbdirectclient_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/scripting/dbdirectclient_factory.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/pipeline_proxy.h:36, from src/mongo/db/exec/pipeline_proxy.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/deadline_monitor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/scripting/deadline_monitor.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/server_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/server_options_init.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/rollback_gen.h --output build/opt/mongo/db/repl/rollback_gen.cpp src/mongo/db/repl/rollback.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/storage_interface_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/storage_interface_impl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_settings.cpp ar rcsTD build/opt/mongo/scripting/libscripting_common.a build/opt/mongo/scripting/deadline_monitor.o build/opt/mongo/scripting/dbdirectclient_factory.o build/opt/mongo/scripting/engine.o build/opt/mongo/scripting/utils.o Skipping ranlib for thin archive build/opt/mongo/scripting/libscripting_common.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/catalog/namespace_index.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tanh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tanh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_zone_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_zone_operations.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/add_shard_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/request_types/add_shard_request_type.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface_impl.h:42, from src/mongo/db/repl/storage_interface_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface_impl.h:42, from src/mongo/db/repl/storage_interface_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface_impl.h:42, from src/mongo/db/repl/storage_interface_impl.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface_impl.h:42, from src/mongo/db/repl/storage_interface_impl.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/storage/mmap_v1/catalog/hashtab.h:36, from src/mongo/db/storage/mmap_v1/catalog/namespace_index.cpp:42: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:151:42: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 151 | memset(this, 0, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:160:43: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 160 | memcpy(this, &e, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/interval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/interval.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/resource_pattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/resource_pattern.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/user.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/user.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/servnotf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/servnotf.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/s/add_shard_cmd_gen.h --output build/opt/mongo/db/s/add_shard_cmd_gen.cpp src/mongo/db/s/add_shard_cmd.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/type_shard_identity.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/type_shard_identity.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface_impl.h:42, from src/mongo/db/repl/storage_interface_impl.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_first.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_first.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_first.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_first.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/wire_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/wire_version.cpp src/mongo/db/repl/storage_interface_impl.cpp: In function 'mongo::Status mongo::repl::{anonymous}::insertDocumentsSingleBatch(mongo::OperationContext*, const mongo::NamespaceStringOrUUID&, std::vector::const_iterator, std::vector::const_iterator)': src/mongo/db/repl/storage_interface_impl.cpp:315:8: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 315 | Status insertDocumentsSingleBatch(OperationContext* opCtx, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/repl/storage_interface_impl.cpp:315:8: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface_impl.h:42, from src/mongo/db/repl/storage_interface_impl.cpp:35: src/mongo/db/catalog/collection.h:481:99: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 481 | return this->_impl().insertDocuments(opCtx, begin, end, opDebug, enforceQuota, fromMigrate); | ^ src/mongo/db/catalog/collection.h:481:99: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 src/mongo/db/repl/storage_interface_impl.cpp: In member function 'virtual mongo::Status mongo::repl::StorageInterfaceImpl::insertDocuments(mongo::OperationContext*, const mongo::NamespaceStringOrUUID&, const std::vector&)': src/mongo/db/repl/storage_interface_impl.cpp:346:43: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 346 | if (insertDocumentsSingleBatch(opCtx, nsOrUUID, docs.cbegin(), docs.cend()).isOK()) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/repl/storage_interface_impl.cpp:346:43: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 src/mongo/db/repl/storage_interface_impl.cpp:359:85: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 359 | auto status = insertDocumentsSingleBatch(opCtx, nsOrUUID, it, it + 1); | ^ src/mongo/db/repl/storage_interface_impl.cpp:359:85: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 src/mongo/db/repl/storage_interface_impl.cpp:359:85: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 359 | auto status = insertDocumentsSingleBatch(opCtx, nsOrUUID, it, it + 1); | ^ src/mongo/db/repl/storage_interface_impl.cpp:359:85: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asin.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asin.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/signal_win32.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/signal_win32.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/store_possible_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/store_possible_cursor.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/alphaindex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/alphaindex.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sin.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sin.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/background.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/background.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/server_options_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/server_options_helpers.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/bit_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/bit_node.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/query/store_possible_cursor.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/query/store_possible_cursor.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/util/libbackground_job.a build/opt/mongo/util/background.o Skipping ranlib for thin archive build/opt/mongo/util/libbackground_job.a In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/query/store_possible_cursor.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/free_mon/free_mon_storage_gen.h --output build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp src/mongo/db/free_mon/free_mon_storage.idl src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/query/store_possible_cursor.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_storage_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/bit_node.h:33, from src/mongo/db/update/bit_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/bit_node.h:33, from src/mongo/db/update/bit_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/bit_node.h:33, from src/mongo/db/update/bit_node.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::BitNode::BitwiseOp&}; _Tp = mongo::BitNode::BitwiseOp; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/update/bit_node.cpp: In member function 'virtual mongo::Status mongo::BitNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/bit_node.cpp:39:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 39 | Status BitNode::init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) { | ^~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/expression_context.h:37, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/bit_node.h:33, from src/mongo/db/update/bit_node.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_session_server_status_section.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/query/store_possible_cursor.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/util/uuid.h:40, from src/mongo/db/namespace_string.h:43, from src/mongo/s/query/store_possible_cursor.h:33, from src/mongo/s/query/store_possible_cursor.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {}; _Tp = mongo::RemoteCursor; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'mongo::StatusWith mongo::storePossibleCursor(mongo::OperationContext*, const mongo::ShardId&, const mongo::HostAndPort&, const mongo::BSONObj&, const mongo::NamespaceString&, mongo::executor::TaskExecutor*, mongo::ClusterCursorManager*, mongo::TailableModeEnum)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/end_sessions_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/commands/end_sessions_gen.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/logical_session_server_status_section.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/logical_session_server_status_section.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/logical_session_server_status_section.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_cache_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_session_cache_impl.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/logical_session_server_status_section.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_storage_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/end_sessions_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/end_sessions_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/initialize_operation_session_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/initialize_operation_session_info.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/end_sessions_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/end_sessions_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/logical_session_server_status_section.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/dns_query.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/dns_query.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/end_sessions_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/cstr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/cstr.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uiter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/router_stage_remove_metadata_fields.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/router_stage_remove_metadata_fields.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sinh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sinh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_knobs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/query_knobs.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/cluster_cursor_cleanup_job.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/cluster_cursor_cleanup_job.cpp ar rcsTD build/opt/mongo/db/liblogical_session_cache_impl.a build/opt/mongo/db/initialize_operation_session_info.o build/opt/mongo/db/logical_session_cache_impl.o build/opt/mongo/db/logical_session_server_status_section.o build/opt/mongo/db/commands/end_sessions_gen.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_cache_impl.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/astro.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/astro.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/periodic_runner_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/periodic_runner_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/s/query/router_stage_remove_metadata_fields.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/s/query/router_stage_remove_metadata_fields.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbi.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbi.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_boost.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_boost.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/chunk_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/chunk_version.cpp ar rcsTD build/opt/mongo/db/query/libquery_knobs.a build/opt/mongo/db/query/query_knobs.o Skipping ranlib for thin archive build/opt/mongo/db/query/libquery_knobs.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsonelement.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/bsonelement.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/libperiodic_runner_impl.a build/opt/mongo/util/periodic_runner_impl.o Skipping ranlib for thin archive build/opt/mongo/util/libperiodic_runner_impl.a /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/auth/address_restriction_gen.h --output build/opt/mongo/db/auth/address_restriction_gen.cpp src/mongo/db/auth/address_restriction.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/address_restriction_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/auth/address_restriction_gen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/address_restriction.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/address_restriction.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/address_restriction_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/address_restriction_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/address_restriction_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_cleanup_job.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/address_restriction_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/ftsmongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/ftsmongod.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/latency_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/latency_server_status_section.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/btree/key.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/btree/key.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/auth/address_restriction_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/latency_server_status_section.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/latency_server_status_section.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/latency_server_status_section.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_conf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uspoof_conf.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/latency_server_status_section.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/index_entry_comparison.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/index_entry_comparison.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/ssl_types.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/ssl_types.cpp ar rcsTD build/opt/mongo/db/auth/libaddress_restriction.a build/opt/mongo/db/auth/address_restriction.o build/opt/mongo/db/auth/address_restriction_gen.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libaddress_restriction.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_add.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_add.c ar rcsTD build/opt/mongo/util/net/libssl_types.a build/opt/mongo/util/net/ssl_types.o Skipping ranlib for thin archive build/opt/mongo/util/net/libssl_types.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/group_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/group_cmd.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/icu.cpp ar rcsTD build/opt/mongo/db/storage/libindex_entry_comparison.a build/opt/mongo/db/storage/index_entry_comparison.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libindex_entry_comparison.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationdata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationdata.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2regioncoverer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2regioncoverer.cc /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/udat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/udat.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/latency_server_status_section.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_next.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_next.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/dbhash.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/dbhash.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/elapsed_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/elapsed_tracker.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/third_party/s2/s2regioncoverer.h:6, from src/third_party/s2/s2regioncoverer.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const S2CellId&}; _Tp = S2CellId; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/group_cmd.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {S2CellId}; _Tp = S2CellId; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/group_cmd.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void S2RegionCoverer::AddCandidate(S2RegionCoverer::Candidate*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/group_cmd.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/third_party/s2/s2regioncoverer.h:6, from src/third_party/s2/s2regioncoverer.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In static member function 'static void S2RegionCoverer::FloodFill(const S2Region&, const S2CellId&, std::vector*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/group_cmd.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/abstract_oplog_fetcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/abstract_oplog_fetcher.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/base/int128.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/base/int128.cc In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/dbhash.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/dbhash.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/dbhash.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/dbhash.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/base/logging.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/base/logging.cc In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/abstract_oplog_fetcher.h:35, from src/mongo/db/repl/abstract_oplog_fetcher.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/abstract_oplog_fetcher.h:35, from src/mongo/db/repl/abstract_oplog_fetcher.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/abstract_oplog_fetcher.h:35, from src/mongo/db/repl/abstract_oplog_fetcher.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/base/strtoint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/base/strtoint.cc In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/abstract_oplog_fetcher.h:35, from src/mongo/db/repl/abstract_oplog_fetcher.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/base/stringprintf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/base/stringprintf.cc In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/group_cmd.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/third_party/s2/base/libbase_s2.a build/opt/third_party/s2/base/int128.o build/opt/third_party/s2/base/logging.o build/opt/third_party/s2/base/stringprintf.o build/opt/third_party/s2/base/strtoint.o Skipping ranlib for thin archive build/opt/third_party/s2/base/libbase_s2.a /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/free_mon/free_mon_protocol_gen.h --output build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp src/mongo/db/free_mon/free_mon_protocol.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_mongod.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/abstract_oplog_fetcher.h:35, from src/mongo/db/repl/abstract_oplog_fetcher.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/dbhash.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_registry.h:37, from src/mongo/db/free_mon/free_mon_mongod.h:33, from src/mongo/db/free_mon/free_mon_mongod.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_registry.h:37, from src/mongo/db/free_mon/free_mon_mongod.h:33, from src/mongo/db/free_mon/free_mon_mongod.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_registry.h:37, from src/mongo/db/free_mon/free_mon_mongod.h:33, from src/mongo/db/free_mon/free_mon_mongod.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_registry.h:37, from src/mongo/db/free_mon/free_mon_mongod.h:33, from src/mongo/db/free_mon/free_mon_mongod.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libabstract_oplog_fetcher.a build/opt/mongo/db/repl/abstract_oplog_fetcher.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libabstract_oplog_fetcher.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_cache_factory_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_session_cache_factory_mongos.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tmunit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tmunit.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/fsync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/fsync.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asinh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asinh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/intrusive_counter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/intrusive_counter.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fsync.cpp:47: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fsync.cpp:47: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fsync.cpp:47: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/type_shard.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fsync.cpp:47: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fsync.cpp:47: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/message_compressor_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/transport/message_compressor_registry.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fsync.cpp:47: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_registry.h:37, from src/mongo/db/free_mon/free_mon_mongod.h:33, from src/mongo/db/free_mon/free_mon_mongod.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/network_interface_tl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/executor/network_interface_tl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/connection_pool_tl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/executor/connection_pool_tl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/network_interface_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/executor/network_interface_factory.cpp In file included from src/mongo/transport/session.h:40, from src/mongo/db/service_context.h:48, from src/mongo/client/async_client.h:35, from src/mongo/executor/connection_pool_tl.h:35, from src/mongo/executor/connection_pool_tl.cpp:35: src/mongo/util/future.h: In instantiation of 'mongo::StatusWith mongo::future_details::statusCall(Func&&, Args&& ...) [with Func = mongo::executor::connection_pool_tl::TLConnection::setup(mongo::Milliseconds, mongo::executor::ConnectionPool::ConnectionInterface::SetupCallback)::::&; Args = {mongo::executor::RemoteCommandResponse}; RawResult = mongo::Status; = void; = void; = void]': src/mongo/util/future.h:842:71: required from 'mongo::future_details::Future mongo::future_details::Future::then(Func&&) && [with Func = mongo::executor::connection_pool_tl::TLConnection::setup(mongo::Milliseconds, mongo::executor::ConnectionPool::ConnectionInterface::SetupCallback)::::; Result = void; = void; T = mongo::executor::RemoteCommandResponse]' src/mongo/executor/connection_pool_tl.cpp:189:18: required from here src/mongo/util/future.h:177:32: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(status); | ^ src/mongo/util/future.h:177:32: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/collation/collator_factory_icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_factory_icu.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/collation/collator_interface_icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_interface_icu.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_coordinator_impl_elect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_impl_elect.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/shard_collection_gen.h --output build/opt/mongo/s/request_types/shard_collection_gen.cpp src/mongo/s/request_types/shard_collection.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/active_shard_collection_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/active_shard_collection_registry.cpp ar rcsTD build/opt/mongo/db/query/collation/libcollator_icu.a build/opt/mongo/db/query/collation/collator_factory_icu.o build/opt/mongo/db/query/collation/collator_interface_icu.o Skipping ranlib for thin archive build/opt/mongo/db/query/collation/libcollator_icu.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/namespace_uuid_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/namespace_uuid_cache.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/executor/libnetwork_interface_tl.a build/opt/mongo/executor/connection_pool_tl.o build/opt/mongo/executor/network_interface_tl.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move 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/opt/mongo/executor/libnetwork_interface_tl.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/uuid_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/uuid_catalog.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_shard_collection_registry.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_shard_collection_registry.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_shard_collection_registry.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/namespace_uuid_cache.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/namespace_uuid_cache.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_shard_collection_registry.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/namespace_uuid_cache.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/namespace_uuid_cache.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/uuid_catalog.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/uuid_catalog.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/uuid_catalog.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/uuid_catalog.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_shard_collection_registry.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/namespace_uuid_cache.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/eval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/eval.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/thread_pool_task_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/executor/thread_pool_task_executor.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/util_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/util_props.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/uuid_catalog.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/task_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/executor/task_executor.cpp In file included from src/mongo/db/catalog/uuid_catalog.cpp:34: src/mongo/db/catalog/uuid_catalog.h: In member function 'virtual void mongo::UUIDCatalogObserver::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/catalog/uuid_catalog.h:53:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 53 | void onInserts(OperationContext* opCtx, | ^~~~~~~~~ src/mongo/db/catalog/uuid_catalog.h:53:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/util/net/hostandport_gen.h --output build/opt/mongo/util/net/hostandport_gen.cpp src/mongo/util/net/hostandport.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/hostandport_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc build/opt/mongo/util/net/hostandport_gen.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/eval.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/eval.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/catalog/libuuid_catalog.a build/opt/mongo/db/catalog/namespace_uuid_cache.o build/opt/mongo/db/catalog/uuid_catalog.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libuuid_catalog.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erf.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erf.c In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/eval.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/service_state_machine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/transport/service_state_machine.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/eval.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/eval.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/hostandport_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/hostandport_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/hostandport_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/hostandport_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/service_entry_point_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/transport/service_entry_point_impl.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/eval.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/concurrency/spin_lock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/concurrency/spin_lock.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/util/net/hostandport_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/multiapplier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/multiapplier.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/listformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/listformatter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/itoa.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/itoa.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbt_set.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_redact.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_redact.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2polyline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2polyline.cc ar rcsTD build/opt/mongo/transport/libservice_entry_point.a build/opt/mongo/transport/service_entry_point_impl.o build/opt/mongo/transport/service_state_machine.o Skipping ranlib for thin archive build/opt/mongo/transport/libservice_entry_point.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/cluster_identity_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/cluster_identity_loader.cpp src/third_party/s2/s2polyline.cc: In member function 'void S2Polyline::Init(const std::vector >&)': src/third_party/s2/s2polyline.cc:57:73: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'S2Point' {aka 'class Vector3'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 57 | memcpy(vertices_, &vertices[0], num_vertices_ * sizeof(vertices_[0])); | ^ In file included from src/third_party/s2/util/math/vector3-inl.h:29, from src/third_party/s2/s2.h:26, from src/third_party/s2/s2polyline.cc:10: src/third_party/s2/util/math/vector3.h:30:7: note: 'S2Point' {aka 'class Vector3'} declared here 30 | class Vector3 { | ^~~~~~~ src/third_party/s2/s2polyline.cc: In constructor 'S2Polyline::S2Polyline(const S2Polyline*)': src/third_party/s2/s2polyline.cc:106:73: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'S2Point' {aka 'class Vector3'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 106 | memcpy(vertices_, src->vertices_, num_vertices_ * sizeof(vertices_[0])); | ^ In file included from src/third_party/s2/util/math/vector3-inl.h:29, from src/third_party/s2/s2.h:26, from src/third_party/s2/s2polyline.cc:10: src/third_party/s2/util/math/vector3.h:30:7: note: 'S2Point' {aka 'class Vector3'} declared here 30 | class Vector3 { | ^~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/balancer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/balancer.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/migration_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/migration_manager.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/type_migration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/type_migration.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::Value&}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::Value mongo::DocumentSourceRedact::redactValue(const mongo::Value&, const mongo::Document&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_redact.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceRedact::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_redact.cpp:175:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 175 | intrusive_ptr DocumentSourceRedact::createFromBson( | ^~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_redact.cpp:182:86: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 182 | intrusive_ptr expression = Expression::parseOperand(expCtx, elem, vps); | ^ In file included from src/mongo/db/pipeline/document_source_redact.h:34, from src/mongo/db/pipeline/document_source_redact.cpp:33: src/mongo/db/pipeline/document_source_redact.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_redact(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_redact.cpp:53:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 53 | REGISTER_DOCUMENT_SOURCE(redact, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/scoped_migration_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/scoped_migration_request.cpp src/mongo/db/s/balancer/scoped_migration_request.cpp: In static member function 'static mongo::StatusWith mongo::ScopedMigrationRequest::writeMigration(mongo::OperationContext*, const mongo::MigrateInfo&, bool)': src/mongo/db/s/balancer/scoped_migration_request.cpp:169:25: warning: redundant move in return statement [-Wredundant-move] 169 | return std::move(scopedMigrationRequest); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/s/balancer/scoped_migration_request.cpp:169:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/cluster_statistics_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/cluster_statistics_impl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/cluster_statistics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/cluster_statistics.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:34, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::move_iterator<__gnu_cxx::__normal_iterator > >; _Tp = mongo::BalancerChunkSelectionPolicy::SplitInfo; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::move_iterator<__gnu_cxx::__normal_iterator > >; _Tp = mongo::MigrateInfo; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::BalancerChunkSelectionPolicy::SplitInfo&}; _Tp = mongo::BalancerChunkSelectionPolicy::SplitInfo; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/balancer_chunk_selection_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/balancer_chunk_selection_policy.cpp /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::ChunkType&}; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::shuffle(_RAIter, _RAIter, _UGenerator&&) [with _RAIter = __gnu_cxx::__normal_iterator >; _UGenerator = std::linear_congruential_engine&]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:3786:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 3786 | shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:3786:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:34, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In function 'mongo::StatusWith mongo::{anonymous}::createCollectionDistributionStatus(mongo::OperationContext*, const ShardStatisticsVector&, mongo::ChunkManager*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp: In member function 'virtual mongo::StatusWith > mongo::BalancerChunkSelectionPolicyImpl::selectChunksToMove(mongo::OperationContext*, bool)': src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:261:17: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 261 | std::shuffle(collections.begin(), collections.end(), _random); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:34, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/set:60, from src/mongo/db/s/balancer/balancer_policy.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:37, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::pair std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_hint_unique_pos(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, const key_type&) [with _Key = mongo::BSONObj; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = mongo::BSONComparatorInterfaceBase::LessThan; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2187:5: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::BSONComparatorInterfaceBase::LessThan, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 2187 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/balancer/balancer_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/balancer/balancer_policy.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/random.h:34, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/random:49, from src/mongo/db/s/balancer/balancer_random.h:33, from src/mongo/db/s/balancer/cluster_statistics_impl.h:33, from src/mongo/db/s/balancer/cluster_statistics_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const std::__cxx11::basic_string, std::allocator >&, long long int, long long int, bool, std::set, std::allocator >, std::less, std::allocator > >, std::allocator, std::allocator > > >, std::__cxx11::basic_string, std::allocator >}; _Tp = mongo::ClusterStatistics::ShardStatistics; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:34, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::StatusWith > mongo::BalancerChunkSelectionPolicyImpl::_getSplitCandidatesForCollection(mongo::OperationContext*, const mongo::NamespaceString&, const ShardStatisticsVector&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/s/client/shard.h:33, from src/mongo/db/s/balancer/cluster_statistics.h:39, from src/mongo/db/s/balancer/cluster_statistics_impl.h:34, from src/mongo/db/s/balancer/cluster_statistics_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::shuffle(_RAIter, _RAIter, _UGenerator&&) [with _RAIter = __gnu_cxx::__normal_iterator >; _UGenerator = std::linear_congruential_engine&]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:3786:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 3786 | shuffle(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:3786:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp: In member function 'virtual mongo::StatusWith > mongo::BalancerChunkSelectionPolicyImpl::selectChunksToSplit(mongo::OperationContext*)': src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:206:17: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 206 | std::shuffle(collections.begin(), collections.end(), _random); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/s/balancer/balancer_chunk_selection_policy.h:34, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.h:33, from src/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::move_iterator<__gnu_cxx::__normal_iterator > >' changed in GCC 7.1 src/mongo/db/s/balancer/cluster_statistics_impl.cpp: In member function 'virtual mongo::StatusWith > mongo::ClusterStatisticsImpl::getStats(mongo::OperationContext*)': src/mongo/db/s/balancer/cluster_statistics_impl.cpp:116:17: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 116 | std::shuffle(shards.begin(), shards.end(), _random); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/random.h:34, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/random:49, from src/mongo/db/s/balancer/balancer_random.h:33, from src/mongo/db/s/balancer/cluster_statistics_impl.h:33, from src/mongo/db/s/balancer/cluster_statistics_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ src/mongo/db/s/balancer/cluster_statistics_impl.cpp:164:1: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 164 | } | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/introspect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/introspect.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/egress_tag_closer_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/executor/egress_tag_closer_manager.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_consistency.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_consistency.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/s/balancer/balancer_policy.h:34, from src/mongo/db/s/balancer/balancer_policy.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::ShardId&, const mongo::ChunkType&}; _Tp = mongo::MigrateInfo; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const mongo::ShardId&, const mongo::ChunkType&}; _Tp = mongo::MigrateInfo; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/legacy_reply.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/legacy_reply.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/introspect.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/introspect.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/introspect.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/index_consistency.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/index_consistency.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/introspect.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/index_consistency.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/index_consistency.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/s/libbalancer.a build/opt/mongo/db/s/balancer/balancer_chunk_selection_policy_impl.o build/opt/mongo/db/s/balancer/balancer_chunk_selection_policy.o build/opt/mongo/db/s/balancer/balancer_policy.o build/opt/mongo/db/s/balancer/balancer.o build/opt/mongo/db/s/balancer/cluster_statistics_impl.o build/opt/mongo/db/s/balancer/cluster_statistics.o build/opt/mongo/db/s/balancer/migration_manager.o build/opt/mongo/db/s/balancer/scoped_migration_request.o build/opt/mongo/db/s/balancer/type_migration.o Skipping ranlib for thin archive build/opt/mongo/db/s/libbalancer.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/cluster_client_cursor_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/cluster_client_cursor_impl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucmndata.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucmndata.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/format.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/format.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/update.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_client_cursor_impl.h:37, from src/mongo/s/query/cluster_client_cursor_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_client_cursor_impl.h:37, from src/mongo/s/query/cluster_client_cursor_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_client_cursor_impl.h:37, from src/mongo/s/query/cluster_client_cursor_impl.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_client_cursor_impl.h:37, from src/mongo/s/query/cluster_client_cursor_impl.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/ops/update.h:35, from src/mongo/db/ops/update.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/introspect.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/ops/update.h:35, from src/mongo/db/ops/update.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/ops/update.h:35, from src/mongo/db/ops/update.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/ops/update.h:35, from src/mongo/db/ops/update.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/index_consistency.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libintrospect.a build/opt/mongo/db/introspect.o In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_client_cursor_impl.h:37, from src/mongo/s/query/cluster_client_cursor_impl.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/libintrospect.a src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_replace_root.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_replace_root.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.h --output build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp src/mongo/s/request_types/clone_collection_options_from_primary_shard.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/clone_collection_options_from_primary_shard_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_noncomp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_noncomp.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/ops/update.h:35, from src/mongo/db/ops/update.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/remote_command_targeter_standalone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/remote_command_targeter_standalone.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/write_conflict_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/concurrency/write_conflict_exception.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/plan_cache_indexability.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/plan_cache_indexability.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/concurrency/write_conflict_exception.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/concurrency/write_conflict_exception.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/concurrency/write_conflict_exception.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/concurrency/write_conflict_exception.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/plan_cache_indexability.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/plan_cache_indexability.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_internal_expr_eq.h:33, from src/mongo/db/query/plan_cache_indexability.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_replace_root.cpp: In member function 'void mongo::ReplaceRootTransformation::parse(const boost::intrusive_ptr&, const mongo::BSONElement&)': src/mongo/db/pipeline/document_source_replace_root.cpp:131:52: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 131 | _newRoot = Expression::parseOperand(expCtx, argument, vps); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_replace_root.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceReplaceRoot::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_replace_root.cpp:152:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | intrusive_ptr DocumentSourceReplaceRoot::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_replace_root.h:33, from src/mongo/db/pipeline/document_source_replace_root.cpp:33: src/mongo/db/pipeline/document_source_replace_root.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_replaceRoot(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_replace_root.cpp:148:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 148 | REGISTER_DOCUMENT_SOURCE(replaceRoot, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_collection_options_from_primary_shard_cmd.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/heartbeat_response_action.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/heartbeat_response_action.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/rename_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/rename_collection.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/processinfo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/processinfo.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/collection_bulk_loader_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/collection_bulk_loader_impl.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/concurrency/write_conflict_exception.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/concurrency/libwrite_conflict_exception.a build/opt/mongo/db/concurrency/write_conflict_exception.o Skipping ranlib for thin archive build/opt/mongo/db/concurrency/libwrite_conflict_exception.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/periodic_runner_job_abort_expired_transactions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/file_allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/file_allocator.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/rename_collection.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/rename_collection.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/rename_collection.cpp:44: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/rename_collection.cpp:44: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/mmap_v1/libfile_allocator.a build/opt/mongo/db/storage/mmap_v1/file_allocator.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libfile_allocator.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/text.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/text.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/periodic_runner_job_abort_expired_transactions.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/fetch.h:37, from src/mongo/db/exec/text.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/fetch.h:37, from src/mongo/db/exec/text.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/timer_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/timer_stats.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/rename_collection.cpp:44: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/collection_bulk_loader_impl.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/stats/libtimer_stats.a build/opt/mongo/db/stats/timer_stats.o Skipping ranlib for thin archive build/opt/mongo/db/stats/libtimer_stats.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/util.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/util/math/mathutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -Isrc/third_party/gflags-2.0/src -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/util/math/mathutil.cc ar rcsTD build/opt/mongo/db/repl/libstorage_interface_impl.a build/opt/mongo/db/repl/storage_interface_impl.o build/opt/mongo/db/repl/collection_bulk_loader_impl.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libstorage_interface_impl.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_remove_shard_from_zone_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp In file included from src/mongo/platform/decimal128.h:41, from src/mongo/platform/endian.h:40, from src/mongo/base/data_range.h:40, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/catalog/rename_collection.h:32, from src/mongo/db/catalog/rename_collection.cpp:35: src/mongo/db/catalog/rename_collection.cpp: In function 'mongo::Status mongo::renameCollectionForApplyOps(mongo::OperationContext*, const string&, const mongo::BSONElement&, const mongo::BSONObj&, const mongo::repl::OpTime&)': src/mongo/db/catalog/rename_collection.cpp:71:44: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 71 | auto uuid = uassertStatusOK(UUID::parse(ui)); | ~~~~~~~~~~~^~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ src/mongo/db/catalog/rename_collection.cpp:592:49: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 592 | targetUUID = uassertStatusOK(UUID::parse(ui)); | ~~~~~~~~~~~^~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ src/mongo/db/catalog/rename_collection.cpp:597:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 597 | auto uuid = uassertStatusOK(UUID::parse(cmd["dropTarget"])); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_request_votes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_request_votes.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_commands.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_request_votes.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_request_votes.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_request_votes.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_request_votes.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feclearexcept.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feclearexcept.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_from_int.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_from_int.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_matcher.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_commands.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_commands.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_commands.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_commands.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_from_zone_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_customization_hooks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_customization_hooks.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_request_votes.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/commands/list_databases_gen.h --output build/opt/mongo/db/commands/list_databases_gen.cpp src/mongo/db/commands/list_databases.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/list_databases_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/commands/list_databases_gen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_noncomp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_noncomp.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_remove_shard_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_remove_shard_command.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/cloner.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/list_databases_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/list_databases_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/list_databases_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/list_databases_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_commands.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/cloner.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/cloner.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/cloner.cpp:45: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/cloner.cpp:45: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/list_databases_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_remove_shard_command.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationroot.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationroot.cpp ar rcsTD build/opt/mongo/db/repl/librepl_set_commands.a build/opt/mongo/db/repl/repl_set_commands.o build/opt/mongo/db/repl/repl_set_request_votes.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_set_commands.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lround.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lround.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/database.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_yaml.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_yaml.cpp ar rcsTD build/opt/third_party/libshim_yaml.a build/opt/third_party/shim_yaml.o Skipping ranlib for thin archive build/opt/third_party/libshim_yaml.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/mongod_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/mongod_options.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_options.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/cloner.cpp:45: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/db.h:38, from src/mongo/db/mongod_options.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/db.h:38, from src/mongo/db/mongod_options.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/db.h:38, from src/mongo/db/mongod_options.cpp:44: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int8.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int8.c src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/db.h:38, from src/mongo/db/mongod_options.cpp:44: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/private/record_store_validate_adaptor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/private/record_store_validate_adaptor.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/catalog/private/record_store_validate_adaptor.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/catalog/private/record_store_validate_adaptor.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/db.h:38, from src/mongo/db/mongod_options.cpp:44: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/messagepattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/messagepattern.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/resize_oplog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/resize_oplog.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/collection_sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/collection_sharding_state.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/secure_zero_memory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/secure_zero_memory.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/parse_zoneinfo.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/parse_zoneinfo.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/do_txn_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/do_txn_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/resize_oplog.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/resize_oplog.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/resize_oplog.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/resize_oplog.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/libsecure_zero_memory.a build/opt/mongo/util/secure_zero_memory.o Skipping ranlib for thin archive build/opt/mongo/util/libsecure_zero_memory.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index_names.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index_names.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/do_txn_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/do_txn_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/do_txn_cmd.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/do_txn_cmd.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/global_initializer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/global_initializer.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/decompressor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/decompressor.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_catalog.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/resize_oplog.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/server_status_internal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/server_status_internal.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/server_status_metric.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/server_status_metric.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/do_txn_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/shard_key_pattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/shard_key_pattern.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/chunk_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/chunk_manager.cpp ar rcsTD build/opt/mongo/db/commands/libserver_status_core.a build/opt/mongo/db/commands/server_status_internal.o build/opt/mongo/db/commands/server_status_metric.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libserver_status_core.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/chunk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/chunk.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/devnull/devnull_kv_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/devnull/devnull_kv_engine.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/shard_key_pattern.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/shard_key_pattern.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/shard_key_pattern.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/s/shard_key_pattern.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/chunk_manager.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/chunk_manager.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/chunk_manager.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/s/chunk_manager.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/periodic_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/periodic_runner.cpp ar rcsTD build/opt/mongo/util/libperiodic_runner.a build/opt/mongo/util/periodic_runner.o Skipping ranlib for thin archive build/opt/mongo/util/libperiodic_runner.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/scoped_timer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/scoped_timer.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/s/shard_key_pattern.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/devnull/libstorage_devnull_core.a build/opt/mongo/db/storage/devnull/devnull_kv_engine.o Skipping ranlib for thin archive build/opt/mongo/db/storage/devnull/libstorage_devnull_core.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repair_database_and_check_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repair_database_and_check_version.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int32.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int32.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/s/chunk_manager.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_key_validate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_key_validate.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repair_database_and_check_version.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repair_database_and_check_version.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repair_database_and_check_version.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/views/view_graph.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/views/view_graph.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repair_database_and_check_version.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/catalog/index_key_validate.cpp:46: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/catalog/index_key_validate.cpp:46: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/catalog/index_key_validate.cpp:46: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/catalog/index_key_validate.cpp:46: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/views/view_graph.h:33, from src/mongo/db/views/view_graph.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/views/view_graph.h:33, from src/mongo/db/views/view_graph.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::Status mongo::ViewGraph::_validateChildren(uint64_t, uint64_t, int, mongo::ViewGraph::StatsMap*, std::vector*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/s/libsharding_routing_table.a build/opt/mongo/s/chunk.o build/opt/mongo/s/chunk_manager.o build/opt/mongo/s/shard_key_pattern.o Skipping ranlib for thin archive build/opt/mongo/s/libsharding_routing_table.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_cache_factory_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_session_cache_factory_mongod.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_turkish.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_turkish.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/catalog/index_key_validate.cpp:46: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationbuilder.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repair_database_and_check_version.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_parser.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/liblogical_session_cache_factory_mongod.a build/opt/mongo/db/logical_session_cache_factory_mongod.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_cache_factory_mongod.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/remote_command_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/executor/remote_command_response.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/object_check.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/object_check.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/expression_parser.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/expression_parser.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/expression_parser.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/expression_parser.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/snapshot_management.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/snapshot_management.cpp In file included from src/mongo/db/matcher/expression_parser.cpp:45: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/rpc/libobject_check.a build/opt/mongo/rpc/object_check.o Skipping ranlib for thin archive build/opt/mongo/rpc/libobject_check.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_rem.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_rem.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/paths.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/paths.cpp In file included from src/mongo/db/matcher/expression_parser.cpp:57: src/mongo/db/matcher/schema/expression_internal_schema_fmod.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaFmodMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:51:25: warning: redundant move in return statement [-Wredundant-move] 51 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:51:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:59: src/mongo/db/matcher/schema/expression_internal_schema_max_items.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxItemsMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_items.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(maxItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_items.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:60: src/mongo/db/matcher/schema/expression_internal_schema_max_length.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxLengthMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_length.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(maxLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_length.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:61: src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxPropertiesMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h:68:25: warning: redundant move in return statement [-Wredundant-move] 68 | return std::move(maxProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h:68:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:62: src/mongo/db/matcher/schema/expression_internal_schema_min_items.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinItemsMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_items.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(minItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_items.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:63: src/mongo/db/matcher/schema/expression_internal_schema_min_length.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinLengthMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_length.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(minLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_length.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:64: src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinPropertiesMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h:68:25: warning: redundant move in return statement [-Wredundant-move] 68 | return std::move(minProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h:68:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.cpp:68: src/mongo/db/matcher/schema/expression_internal_schema_xor.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaXorMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_xor.h:59:25: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:59:25: note: remove 'std::move' call src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWith > > > mongo::{anonymous}::parsePatternProperties(mongo::BSONElement, mongo::StringData, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:953:21: warning: redundant move in return statement [-Wredundant-move] 953 | return std::move(patternProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:953:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/snapshot_management.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/snapshot_management.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/snapshot_management.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_basic_phrase_matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_basic_phrase_matcher.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/snapshot_management.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/librepair_database_and_check_version.a build/opt/mongo/db/repair_database_and_check_version.o Skipping ranlib for thin archive build/opt/mongo/db/librepair_database_and_check_version.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sinh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sinh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/audit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/audit.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/planner_access.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/planner_access.cpp In file included from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:34, from src/mongo/db/matcher/expression_parser.cpp:55: src/mongo/db/matcher/expression_arity.h: In instantiation of 'std::unique_ptr mongo::FixedArityMatchExpression::shallowClone() const [with T = mongo::InternalSchemaCondMatchExpression; unsigned int nargs = 3]': src/mongo/db/matcher/expression_arity.h:118:38: required from here src/mongo/db/matcher/expression_arity.h:133:31: warning: redundant move in return statement [-Wredundant-move] 133 | return std::move(clone); | ^ src/mongo/db/matcher/expression_arity.h:133:31: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/expression_parser.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/planner_access.h:33, from src/mongo/db/query/planner_access.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/planner_access.h:33, from src/mongo/db/query/planner_access.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_access.h:33, from src/mongo/db/query/planner_access.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/planner_access.h:33, from src/mongo/db/query/planner_access.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/pop_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/pop_node.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/snapshot_management.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/query/planner_access.cpp:44: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/type_mongos.cpp src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/pop_node.h:33, from src/mongo/db/update/pop_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/pop_node.h:33, from src/mongo/db/update/pop_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/query/planner_access.cpp: In static member function 'static std::unique_ptr mongo::QueryPlannerAccess::makeCollectionScan(const mongo::CanonicalQuery&, bool, const mongo::QueryPlannerParams&)': src/mongo/db/query/planner_access.cpp:179:21: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(csn); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:179:21: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp: In static member function 'static std::unique_ptr mongo::QueryPlannerAccess::makeLeafNode(const mongo::CanonicalQuery&, const mongo::IndexEntry&, size_t, const mongo::MatchExpression*, mongo::IndexBoundsBuilder::BoundsTightness*)': src/mongo/db/query/planner_access.cpp:215:29: warning: redundant move in return statement [-Wredundant-move] 215 | return std::move(ret); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:215:29: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp:224:29: warning: redundant move in return statement [-Wredundant-move] 224 | return std::move(ret); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:224:29: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp:243:25: warning: redundant move in return statement [-Wredundant-move] 243 | return std::move(ret); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:243:25: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp:265:25: warning: redundant move in return statement [-Wredundant-move] 265 | return std::move(isn); | ~~~~~~~~~^~~~~ src/mongo/db/query/planner_access.cpp:265:25: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp: In static member function 'static std::unique_ptr mongo::QueryPlannerAccess::buildIndexedAnd(const mongo::CanonicalQuery&, mongo::MatchExpression*, std::unique_ptr, const std::vector&, const mongo::QueryPlannerParams&)': src/mongo/db/query/planner_access.cpp:1051:25: warning: redundant move in return statement [-Wredundant-move] 1051 | return std::move(fetch); | ~~~~~~~~~^~~~~~~ src/mongo/db/query/planner_access.cpp:1051:25: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp: In static member function 'static std::unique_ptr mongo::QueryPlannerAccess::_buildIndexedDataAccess(const mongo::CanonicalQuery&, mongo::MatchExpression*, std::unique_ptr, const std::vector&, const mongo::QueryPlannerParams&)': src/mongo/db/query/planner_access.cpp:1218:33: warning: redundant move in return statement [-Wredundant-move] 1218 | return std::move(fetch); | ~~~~~~~~~^~~~~~~ src/mongo/db/query/planner_access.cpp:1218:33: note: remove 'std::move' call src/mongo/db/query/planner_access.cpp:1242:29: warning: redundant move in return statement [-Wredundant-move] 1242 | return std::move(fetch); | ~~~~~~~~~^~~~~~~ src/mongo/db/query/planner_access.cpp:1242:29: note: remove 'std::move' call src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseComment(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:401:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 401 | StatusWithMatchExpression parseComment(StringData name, | ^~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/utility/compare_pointees.hpp:15, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:55, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/base/status_with.h:33, from src/mongo/db/matcher/expression_parser.h:36, from src/mongo/db/matcher/expression_parser.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = mongo::StatusWith >; _Functor = mongo::StatusWith > (*)(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, long long unsigned int, mongo::DocumentParseLevel); _ArgTypes = {mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, long long unsigned int, mongo::DocumentParseLevel}]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseWhere(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:410:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 410 | StatusWithMatchExpression parseWhere(StringData name, | ^~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:420:47: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 420 | return extensionsCallback->parseWhere(elem); | ^ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseText(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:423:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 423 | StatusWithMatchExpression parseText(StringData name, | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:438:46: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 438 | return extensionsCallback->parseText(elem); | ^ In file included from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:33, from src/mongo/db/matcher/expression_parser.cpp:56: src/mongo/bson/unordered_fields_bsonelement_comparator.h: In member function 'virtual void mongo::UnorderedFieldsBSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/unordered_fields_bsonelement_comparator.h:53:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 53 | hashCombineBSONElement(seed, toHash, ComparisonRules::kIgnoreFieldOrder, kStringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseExpr(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:494:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 494 | StatusWithMatchExpression parseExpr(StringData name, | ^~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/memory:80, from src/mongo/base/error_extra_info.h:33, from src/mongo/base/status.h:37, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/matcher/expression_parser.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h:849:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 849 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/update/pop_node.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseRegexElement(mongo::StringData, mongo::BSONElement)': src/mongo/db/matcher/expression_parser.cpp:217:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 217 | StatusWithMatchExpression parseRegexElement(StringData name, BSONElement e) { | ^~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/update/pop_node.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseDBRef(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:441:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 441 | StatusWithMatchExpression parseDBRef(StringData name, | ^~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseJSONSchema(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:455:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 455 | StatusWithMatchExpression parseJSONSchema(StringData name, | ^~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'bool mongo::{anonymous}::isExpressionDocument(mongo::BSONElement, bool)': src/mongo/db/matcher/expression_parser.cpp:297:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 297 | bool isExpressionDocument(BSONElement e, bool allowIncompleteDBRef) { | ^~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In static member function 'static boost::optional mongo::MatchExpressionParser::parsePathAcceptingKeyword(mongo::BSONElement, boost::optional)': src/mongo/db/matcher/expression_parser.cpp:1902:39: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1902 | boost::optional MatchExpressionParser::parsePathAcceptingKeyword( | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseRegexDocument(mongo::StringData, const mongo::BSONObj&)': src/mongo/db/matcher/expression_parser.cpp:541:76: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 541 | auto matchType = MatchExpressionParser::parsePathAcceptingKeyword(e); | ^ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/planner_access.h:33, from src/mongo/db/query/planner_access.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_parser.cpp: In static member function 'static mongo::StatusWith mongo::MatchExpressionParser::parseIntegerElementToLong(mongo::BSONElement)': src/mongo/db/matcher/expression_parser.cpp:137:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 137 | StatusWith MatchExpressionParser::parseIntegerElementToLong(BSONElement elem) { | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In static member function 'static mongo::StatusWith mongo::MatchExpressionParser::parseIntegerElementToNonNegativeLong(mongo::BSONElement)': src/mongo/db/matcher/expression_parser.cpp:122:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 122 | StatusWith MatchExpressionParser::parseIntegerElementToNonNegativeLong( | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:124:49: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 124 | auto number = parseIntegerElementToLong(elem); | ^ src/mongo/db/matcher/expression_parser.cpp: In static member function 'static mongo::StatusWith mongo::MatchExpressionParser::parseIntegerElementToInt(mongo::BSONElement)': src/mongo/db/matcher/expression_parser.cpp:182:17: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 182 | StatusWith MatchExpressionParser::parseIntegerElementToInt(BSONElement elem) { | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:183:76: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 183 | auto parsedLong = MatchExpressionParser::parseIntegerElementToLong(elem); | ^ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseInternalSchemaFmod(mongo::StringData, mongo::BSONElement)': src/mongo/db/matcher/expression_parser.cpp:711:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 711 | StatusWithMatchExpression parseInternalSchemaFmod(StringData name, BSONElement elem) { | ^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseInternalSchemaRootDocEq(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:744:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 744 | StatusWithMatchExpression parseInternalSchemaRootDocEq( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseAlwaysBoolean(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::AlwaysTrueMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:474:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 474 | StatusWithMatchExpression parseAlwaysBoolean( | ^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:481:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 481 | auto statusWithLong = MatchExpressionParser::parseIntegerElementToLong(elem); | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseAlwaysBoolean(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::AlwaysFalseMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:474:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 474 | StatusWithMatchExpression parseAlwaysBoolean( | ^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:481:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 481 | auto statusWithLong = MatchExpressionParser::parseIntegerElementToLong(elem); | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/zrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/zrule.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_graph_lookup.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_graph_lookup.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/update/pop_node.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseBitTest(mongo::StringData, mongo::BSONElement) [with T = mongo::BitsAnySetMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:680:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 680 | StatusWithMatchExpression parseBitTest(StringData name, BSONElement e) { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:692:14: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 692 | auto bitMask = MatchExpressionParser::parseIntegerElementToNonNegativeLong(e); | ^~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseBitTest(mongo::StringData, mongo::BSONElement) [with T = mongo::BitsAllClearMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:680:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 680 | StatusWithMatchExpression parseBitTest(StringData name, BSONElement e) { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:692:14: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 692 | auto bitMask = MatchExpressionParser::parseIntegerElementToNonNegativeLong(e); | ^~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseBitTest(mongo::StringData, mongo::BSONElement) [with T = mongo::BitsAllSetMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:680:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 680 | StatusWithMatchExpression parseBitTest(StringData name, BSONElement e) { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:692:14: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 692 | auto bitMask = MatchExpressionParser::parseIntegerElementToNonNegativeLong(e); | ^~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseTopLevelInternalSchemaSingleIntegerArgument(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::InternalSchemaMaxPropertiesMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:788:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 788 | StatusWithMatchExpression parseTopLevelInternalSchemaSingleIntegerArgument( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:795:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 795 | auto parsedInt = MatchExpressionParser::parseIntegerElementToNonNegativeLong(elem); | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseTopLevelInternalSchemaSingleIntegerArgument(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::InternalSchemaMinPropertiesMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:788:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 788 | StatusWithMatchExpression parseTopLevelInternalSchemaSingleIntegerArgument( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:795:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 795 | auto parsedInt = MatchExpressionParser::parseIntegerElementToNonNegativeLong(elem); | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseType(mongo::StringData, mongo::BSONElement) [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:595:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 595 | StatusWithMatchExpression parseType(StringData name, BSONElement elt) { | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:596:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 596 | auto typeSet = MatcherTypeSet::parse(elt, kTypeAliasMap); | ^~~~~~~ src/mongo/db/update/pop_node.cpp: In member function 'virtual mongo::Status mongo::PopNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/pop_node.cpp:39:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 39 | Status PopNode::init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) { | ^~~~~~~ src/mongo/db/update/pop_node.cpp:40:75: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 40 | auto popVal = MatchExpressionParser::parseIntegerElementToLong(modExpr); | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/shard_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/shard_id.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_entry.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::Status mongo::{anonymous}::parseSub(mongo::StringData, const mongo::BSONObj&, mongo::AndMatchExpression*, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:1736:74: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1736 | if (MatchExpressionParser::parsePathAcceptingKeyword(firstElt) == | ^ src/mongo/db/matcher/expression_parser.cpp:1402:80: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1402 | auto parseExpMatchType = MatchExpressionParser::parsePathAcceptingKeyword(e); | ^ src/mongo/db/matcher/expression_parser.cpp:1399:91: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1399 | return parseNot(name, e, expCtx, extensionsCallback, allowedFeatures, currentLevel); | ^ src/mongo/db/matcher/expression_parser.cpp:1399:91: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1512:58: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1512 | return parseType(name, e); | ^ src/mongo/db/matcher/expression_parser.cpp:1512:58: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1522:74: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1522 | if (MatchExpressionParser::parsePathAcceptingKeyword(temp) == | ^ src/mongo/db/matcher/expression_parser.cpp:1535:87: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1535 | return parseElemMatch(name, e, expCtx, extensionsCallback, allowedFeatures); | ^ src/mongo/db/matcher/expression_parser.cpp:1535:87: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1538:81: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1538 | return parseAll(name, e, expCtx, extensionsCallback, allowedFeatures); | ^ src/mongo/db/matcher/expression_parser.cpp:1538:81: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1563:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1563 | return parseBitTest(name, e); | ^ src/mongo/db/matcher/expression_parser.cpp:1563:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1567:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1567 | return parseBitTest(name, e); | ^ src/mongo/db/matcher/expression_parser.cpp:1567:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1571:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1571 | return parseBitTest(name, e); | ^ src/mongo/db/matcher/expression_parser.cpp:1571:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:692:14: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 692 | auto bitMask = MatchExpressionParser::parseIntegerElementToNonNegativeLong(e); | ^~~~~~~ src/mongo/db/matcher/expression_parser.cpp:1579:51: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1579 | return parseInternalSchemaFmod(name, e); | ^ src/mongo/db/matcher/expression_parser.cpp:1579:51: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:775:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 775 | auto parsedInt = MatchExpressionParser::parseIntegerElementToNonNegativeLong(elem); | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:775:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 775 | auto parsedInt = MatchExpressionParser::parseIntegerElementToNonNegativeLong(elem); | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:775:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 775 | auto parsedInt = MatchExpressionParser::parseIntegerElementToNonNegativeLong(elem); | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:775:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 775 | auto parsedInt = MatchExpressionParser::parseIntegerElementToNonNegativeLong(elem); | ^~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:1068:93: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1068 | auto index = MatchExpressionParser::parseIntegerElementToNonNegativeLong(subobj["index"]); | ^ src/mongo/db/matcher/expression_parser.cpp:1650:97: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1650 | auto parsedIndex = MatchExpressionParser::parseIntegerElementToNonNegativeLong(first); | ^ src/mongo/db/matcher/expression_parser.cpp:596:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 596 | auto typeSet = MatcherTypeSet::parse(elt, kTypeAliasMap); | ^~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/memory:80, from src/mongo/base/error_extra_info.h:33, from src/mongo/base/status.h:37, from src/mongo/db/matcher/expression_parser.h:35, from src/mongo/db/matcher/expression_parser.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h:849:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 849 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h:849:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parse(const mongo::BSONObj&, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:373:71: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 373 | auto result = parseRegexElement(e.fieldNameStringData(), e); | ^ src/mongo/db/matcher/expression_parser.cpp:373:71: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseInternalSchemaAllowedProperties(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:983:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 983 | StatusWithMatchExpression parseInternalSchemaAllowedProperties( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_sequential_document_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sequential_document_cache.cpp src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseTreeTopLevel(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::OrMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1125 | StatusWithMatchExpression parseTreeTopLevel( | ^~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseTreeTopLevel(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::NorMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseTreeTopLevel(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::AndMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseTreeTopLevel(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::InternalSchemaXorMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1125:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseInternalSchemaFixedArityArgument(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel) [with T = mongo::InternalSchemaCondMatchExpression]': src/mongo/db/matcher/expression_parser.cpp:1298:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1298 | StatusWithMatchExpression parseInternalSchemaFixedArityArgument( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:1298:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseNot(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet, mongo::DocumentParseLevel)': src/mongo/db/matcher/expression_parser.cpp:1345:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1345 | StatusWithMatchExpression parseNot(StringData name, | ^~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:1352:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1352 | auto regex = parseRegexElement(name, elem); | ^ src/mongo/db/matcher/expression_parser.cpp:1352:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseElemMatch(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet)': src/mongo/db/matcher/expression_parser.cpp:1157:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1157 | StatusWithMatchExpression parseElemMatch(StringData name, | ^~~~~~~~~~~~~~ src/mongo/db/matcher/expression_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseAll(mongo::StringData, mongo::BSONElement, const boost::intrusive_ptr&, const mongo::ExtensionsCallback*, mongo::MatchExpressionParser::AllowedFeatureSet)': src/mongo/db/matcher/expression_parser.cpp:1228:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1228 | StatusWithMatchExpression parseAll(StringData name, | ^~~~~~~~ src/mongo/db/matcher/expression_parser.cpp:1262:56: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1262 | allowedFeatures); | ^ src/mongo/db/matcher/expression_parser.cpp:1262:56: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_parser.cpp:1278:91: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1278 | MatchExpressionParser::parsePathAcceptingKeyword(e.Obj().firstElement())) { | ^ src/mongo/db/pipeline/document_source_graph_lookup.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceGraphLookUp::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_graph_lookup.cpp:604:21: warning: redundant move in return statement [-Wredundant-move] 604 | return std::move(newSource); | ~~~~~~~~~^~~~~~~~~~~ src/mongo/db/pipeline/document_source_graph_lookup.cpp:604:21: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/unesctrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/unesctrn.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/propname.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/propname.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ufieldpositer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ufieldpositer.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/schriter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/schriter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/cursor_server_params.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/cursor_server_params.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:33, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/parse_iso_intervals.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/parse_iso_intervals.c In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:33, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:33, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/timelib.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/timelib.c src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:33, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/parse_tz.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/parse_tz.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/dow.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/dow.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/tm2unixtime.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/tm2unixtime.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/parse_date.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/parse_date.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/interval.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/interval.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/timelib-2018.01alpha1/unixtime2tm.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DHAVE_GETTIMEOFDAY -DHAVE_STRING_H -DHAVE_DIRENT_H -DHAVE_SYS_TIME_H -DHAVE_UNISTD_H -D_GNU_SOURCE -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/timelib-2018.01alpha1/unixtime2tm.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_unwind.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_unwind.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:33, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/unordered_map:46, from src/mongo/stdx/unordered_map.h:36, from src/mongo/base/initializer_dependency_graph.h:40, from src/mongo/base/initializer.h:38, from src/mongo/base/init.h:49, from src/mongo/db/pipeline/document_source.h:42, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::erase(std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::const_iterator) [with _Key = mongo::Value; _Value = std::pair; _Alloc = std::allocator >; _ExtractKey = std::__detail::_Select1st; _Equal = mongo::ValueComparator::EqualTo; _H1 = mongo::ValueComparator::Hasher; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:1849:5: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, mongo::ValueComparator::EqualTo, mongo::ValueComparator::Hasher, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 1849 | _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1850 | _H1, _H2, _Hash, _RehashPolicy, _Traits>:: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_graph_lookup.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceGraphLookUp::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_graph_lookup.cpp:508:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 508 | intrusive_ptr DocumentSourceGraphLookUp::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_graph_lookup.cpp:525:49: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 525 | startWith = Expression::parseOperand(expCtx, argument, vps); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:33, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const long long int&}; _Tp = long long int; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_sequential_document_cache.h:33, from src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual std::__cxx11::list >::iterator mongo::DocumentSourceSequentialDocumentCache::doOptimizeAt(std::__cxx11::list >::iterator, mongo::Pipeline::SourceContainer*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_sequential_document_cache.cpp:132:1: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 132 | } | ^ In file included from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: src/mongo/db/pipeline/document_source_graph_lookup.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_graphLookup(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_graph_lookup.cpp:83:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 83 | REGISTER_DOCUMENT_SOURCE(graphLookup, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/bmpset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/bmpset.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_unwind.h:33, from src/mongo/db/pipeline/document_source_unwind.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_unwind.h:33, from src/mongo/db/pipeline/document_source_unwind.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_unwind.h:33, from src/mongo/db/pipeline/document_source_unwind.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_unwind.h:33, from src/mongo/db/pipeline/document_source_unwind.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_util.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/unordered_map:46, from src/mongo/stdx/unordered_map.h:36, from src/mongo/base/initializer_dependency_graph.h:40, from src/mongo/base/initializer.h:38, from src/mongo/base/init.h:49, from src/mongo/db/pipeline/document_source.h:42, from src/mongo/db/pipeline/document_source_graph_lookup.h:33, from src/mongo/db/pipeline/document_source_graph_lookup.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'mongo::DocumentSource::GetNextResult mongo::DocumentSourceGraphLookUp::getNextUnwound()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, mongo::ValueComparator::EqualTo, mongo::ValueComparator::Hasher, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'virtual mongo::DocumentSource::GetNextResult mongo::DocumentSourceGraphLookUp::getNext()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, mongo::ValueComparator::EqualTo, mongo::ValueComparator::Hasher, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/sessions_collection_config_server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/sessions_collection_config_server.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/move_timing_helper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/move_timing_helper.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_unwind.h:33, from src/mongo/db/pipeline/document_source_unwind.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/sessions_collection_config_server.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/sessions_collection_config_server.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/sessions_collection_config_server.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/sessions_collection_config_server.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_unwind.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceUnwind::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_unwind.cpp:257:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 257 | intrusive_ptr DocumentSourceUnwind::createFromBson( | ^~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_unwind.h:33, from src/mongo/db/pipeline/document_source_unwind.cpp:33: src/mongo/db/pipeline/document_source_unwind.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_unwind(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_unwind.cpp:170:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 170 | REGISTER_DOCUMENT_SOURCE(unwind, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/move_timing_helper.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/move_timing_helper.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/move_timing_helper.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logb.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logb.c src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/move_timing_helper.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/shard_remote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/client/shard_remote.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/sessions_collection_config_server.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/s/client/shard_remote.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/s/client/shard_remote.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/s/client/shard_remote.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/s/client/shard_remote.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/move_timing_helper.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libsessions_collection_config_server.a build/opt/mongo/db/sessions_collection_config_server.o Skipping ranlib for thin archive build/opt/mongo/db/libsessions_collection_config_server.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/role_name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/role_name.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/refresh_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/refresh_sessions_command.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/replication_consistency_markers_gen.h --output build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp src/mongo/db/repl/replication_consistency_markers.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_consistency_markers_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_consistency_markers_impl.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/s/client/shard_remote.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-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:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/client/libsharding_client.a build/opt/mongo/s/client/shard_remote.o Skipping ranlib for thin archive build/opt/mongo/s/client/libsharding_client.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/expression_keys_private.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/expression_keys_private.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_timelib.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 src/third_party/shim_timelib.cpp ar rcsTD build/opt/third_party/libshim_timelib.a build/opt/third_party/shim_timelib.o Skipping ranlib for thin archive build/opt/third_party/libshim_timelib.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/fill_locker_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/fill_locker_info.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/repl/replication_consistency_markers_impl.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/third_party/timelib-2018.01alpha1/libtimelib.a build/opt/third_party/timelib-2018.01alpha1/astro.o build/opt/third_party/timelib-2018.01alpha1/dow.o build/opt/third_party/timelib-2018.01alpha1/interval.o build/opt/third_party/timelib-2018.01alpha1/parse_date.o build/opt/third_party/timelib-2018.01alpha1/parse_iso_intervals.o build/opt/third_party/timelib-2018.01alpha1/parse_tz.o build/opt/third_party/timelib-2018.01alpha1/parse_zoneinfo.o build/opt/third_party/timelib-2018.01alpha1/timelib.o build/opt/third_party/timelib-2018.01alpha1/tm2unixtime.o build/opt/third_party/timelib-2018.01alpha1/unixtime2tm.o Skipping ranlib for thin archive build/opt/third_party/timelib-2018.01alpha1/libtimelib.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_engine_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_metadata.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_flag_operations.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_flag_operations.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_merge_cursors.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_merge_cursors.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/expression.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/expression.cpp ar rcsTD build/opt/mongo/db/repl/libreplication_consistency_markers_impl.a build/opt/mongo/db/repl/replication_consistency_markers_impl.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplication_consistency_markers_impl.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/catalog/index_details.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/catalog/index_details.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/sharding_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/metadata/sharding_metadata.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/tracking_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/metadata/tracking_metadata.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/repl_set_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/metadata/repl_set_metadata.cpp src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionZip::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:4946:21: warning: redundant move in return statement [-Wredundant-move] 4946 | return std::move(newZip); | ~~~~~~~~~^~~~~~~~ src/mongo/db/pipeline/expression.cpp:4946:21: note: remove 'std::move' call src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionConvert::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:5592:21: warning: redundant move in return statement [-Wredundant-move] 5592 | return std::move(newConvert); | ~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5592:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/tracking_metadata.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/tracking_metadata.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/tracking_metadata.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/tracking_metadata.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/repl_set_metadata.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/repl_set_metadata.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/repl_set_metadata.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/repl_set_metadata.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::RemoteCursor}; _Tp = mongo::RemoteCursor; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_merge_cursors.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceMergeCursors::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_merge_cursors.cpp:116:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 116 | boost::intrusive_ptr DocumentSourceMergeCursors::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_merge_cursors.h:33, from src/mongo/db/pipeline/document_source_merge_cursors.cpp:33: src/mongo/db/pipeline/document_source_merge_cursors.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_mergeCursors(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_merge_cursors.cpp:40:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 40 | REGISTER_DOCUMENT_SOURCE(mergeCursors, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/tracking_metadata.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/config_server_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/metadata/config_server_metadata.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/repl_set_metadata.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/metadata.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/expression.h:36, from src/mongo/db/pipeline/expression.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = boost::intrusive_ptr; _Functor = boost::intrusive_ptr (*)(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&); _ArgTypes = {const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&}]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/egress_metadata_hook_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/metadata/egress_metadata_hook_list.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/config_server_metadata.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/config_server_metadata.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/config_server_metadata.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/config_server_metadata.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/logical_time_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/metadata/logical_time_metadata.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::Value&}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::Value mongo::ExpressionFieldPath::evaluatePathArray(size_t, const mongo::Value&) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Value mongo::ExpressionCoerceToBool::serialize(bool) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionConstant::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:946:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 946 | intrusive_ptr ExpressionConstant::parse( | ^~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/config_server_metadata.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/oplog_query_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/metadata/oplog_query_metadata.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Value mongo::ExpressionMap::evaluate(const mongo::Document&, mongo::Variables*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Value mongo::ExpressionFilter::evaluate(const mongo::Document&, mongo::Variables*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/query_request.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/tailable_mode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/tailable_mode.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Value mongo::ExpressionZip::evaluate(const mongo::Document&, mongo::Variables*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Value mongo::ExpressionConcatArrays::evaluate(const mongo::Document&, mongo::Variables*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/db/pipeline/expression.h:37, from src/mongo/db/pipeline/expression.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_insert_unique_(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Arg&&, _NodeGen&) [with _Arg = const mongo::Value&; _NodeGen = std::_Rb_tree, mongo::ValueComparator::LessThan, std::allocator >::_Alloc_node; _Key = mongo::Value; _Val = mongo::Value; _KeyOfValue = std::_Identity; _Compare = mongo::ValueComparator::LessThan; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2248:7: note: parameter passing for argument of type 'std::_Rb_tree, mongo::ValueComparator::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 2248 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In function 'mongo::ValueSet mongo::{anonymous}::arrayToSet(const mongo::Value&, const mongo::ValueComparator&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1113:6: note: parameter passing for argument of type 'std::_Rb_tree, mongo::ValueComparator::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1113 | _M_insert_unique_(end(), *__first, __an); | ^~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/data_type_string_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/data_type_string_data.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual mongo::Value mongo::ExpressionSetEquals::evaluate(const mongo::Document&, mongo::Variables*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1113:6: note: parameter passing for argument of type 'std::_Rb_tree, mongo::ValueComparator::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1113 | _M_insert_unique_(end(), *__first, __an); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1113:6: note: parameter passing for argument of type 'std::_Rb_tree, mongo::ValueComparator::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1113 | _M_insert_unique_(end(), *__first, __an); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual mongo::Value mongo::ExpressionSetIntersection::evaluate(const mongo::Document&, mongo::Variables*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1113:6: note: parameter passing for argument of type 'std::_Rb_tree, mongo::ValueComparator::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1113 | _M_insert_unique_(end(), *__first, __an); | ^~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual mongo::Value mongo::ExpressionSetUnion::evaluate(const mongo::Document&, mongo::Variables*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1113:6: note: parameter passing for argument of type 'std::_Rb_tree, mongo::ValueComparator::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1113 | _M_insert_unique_(end(), *__first, __an); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/expression.h:39, from src/mongo/db/pipeline/expression.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Value mongo::ExpressionSetDifference::evaluate(const mongo::Document&, mongo::Variables*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/query/query_request.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/query/query_request.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/query/query_request.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/query/query_request.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/fsync_locked.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/fsync_locked.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/dbcheck_gen.h --output build/opt/mongo/db/repl/dbcheck_gen.cpp src/mongo/db/repl/dbcheck.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/dbcheck_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/repl/dbcheck_gen.cpp src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionMeta::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:2552:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2552 | intrusive_ptr ExpressionMeta::parse( | ^~~~~~~~~~~~~~ src/mongo/db/query/query_request.cpp: In static member function 'static mongo::StatusWith > mongo::QueryRequest::parseFromFindCommand(std::unique_ptr, const mongo::BSONObj&, bool)': src/mongo/db/query/query_request.cpp:401:21: warning: redundant move in return statement [-Wredundant-move] 401 | return std::move(qr); | ~~~~~~~~~^~~~ src/mongo/db/query/query_request.cpp:401:21: note: remove 'std::move' call src/mongo/db/query/query_request.cpp: In static member function 'static mongo::StatusWith > mongo::QueryRequest::fromLegacyQueryMessage(const mongo::QueryMessage&)': src/mongo/db/query/query_request.cpp:733:21: warning: redundant move in return statement [-Wredundant-move] 733 | return std::move(qr); | ~~~~~~~~~^~~~ src/mongo/db/query/query_request.cpp:733:21: note: remove 'std::move' call src/mongo/db/query/query_request.cpp: In static member function 'static mongo::StatusWith > mongo::QueryRequest::fromLegacyQuery(mongo::NamespaceString, const mongo::BSONObj&, const mongo::BSONObj&, int, int, int)': src/mongo/db/query/query_request.cpp:749:21: warning: redundant move in return statement [-Wredundant-move] 749 | return std::move(qr); | ~~~~~~~~~^~~~ src/mongo/db/query/query_request.cpp:749:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/rpc/metadata/oplog_query_metadata.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/dbcheck_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/dbcheck_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/dbcheck_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/dbcheck_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/rpc/libmetadata.a build/opt/mongo/rpc/metadata.o build/opt/mongo/rpc/metadata/config_server_metadata.o build/opt/mongo/rpc/metadata/egress_metadata_hook_list.o build/opt/mongo/rpc/metadata/logical_time_metadata.o build/opt/mongo/rpc/metadata/sharding_metadata.o build/opt/mongo/rpc/metadata/repl_set_metadata.o build/opt/mongo/rpc/metadata/oplog_query_metadata.o build/opt/mongo/rpc/metadata/tracking_metadata.o src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/rpc/libmetadata.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/dur.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/dur.cpp src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionObject::parse(const boost::intrusive_ptr&, mongo::BSONObj, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:1969:57: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 1969 | expressions.emplace_back(fieldName, parseOperand(expCtx, elem, vps)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::Expression::parseOperand(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:179:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 179 | intrusive_ptr Expression::parseOperand( | ^~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/query/query_request.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.cpp:193:66: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 193 | return ExpressionConstant::parse(expCtx, exprElement, vps); | ^ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.cpp: In static member function 'static mongo::Expression::ExpressionVector mongo::ExpressionNary::parseArguments(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:163:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 163 | Expression::ExpressionVector ExpressionNary::parseArguments( | ^~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:170:51: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 170 | out.push_back(Expression::parseOperand(expCtx, elem, vps)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:173:47: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 173 | out.push_back(Expression::parseOperand(expCtx, exprElement, vps)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAdd]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAnd]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionCompare::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&, mongo::ExpressionCompare::CmpOp)': src/mongo/db/pipeline/expression.cpp:774:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 774 | intrusive_ptr ExpressionCompare::parse( | ^~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:780:65: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 780 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^ src/mongo/db/pipeline/expression.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = boost::intrusive_ptr; _Functor = mongo::{anonymous}::BoundOp; _ArgTypes = {const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&}]': src/mongo/db/pipeline/expression.cpp:761:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 761 | return ExpressionCompare::parse(expCtx, std::move(bsonExpr), vps, op); | ^ In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionConcat]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionConcatArrays]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionMultiply]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionOr]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetEquals]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetIntersection]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetUnion]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = boost::intrusive_ptr; _Functor = mongo::{anonymous}::makeConversionAlias(mongo::StringData, mongo::BSONType)::&, mongo::BSONElement, const mongo::VariablesParseState&)>; _ArgTypes = {const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&}]': src/mongo/db/pipeline/expression.cpp:5495:73: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 5495 | auto operands = ExpressionNary::parseArguments(expCtx, elem, vps); | ^ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionDateFromParts::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:1024:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1024 | intrusive_ptr ExpressionDateFromParts::parse( | ^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1092:18: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1092 | yearElem ? parseOperand(expCtx, yearElem, vps) : nullptr, | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1093:19: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1093 | monthElem ? parseOperand(expCtx, monthElem, vps) : nullptr, | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1094:17: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1094 | dayElem ? parseOperand(expCtx, dayElem, vps) : nullptr, | ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1095:18: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1095 | hourElem ? parseOperand(expCtx, hourElem, vps) : nullptr, | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1096:20: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1096 | minuteElem ? parseOperand(expCtx, minuteElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1097:20: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1097 | secondElem ? parseOperand(expCtx, secondElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1098:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1098 | millisecondElem ? parseOperand(expCtx, millisecondElem, vps) : nullptr, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1099:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1099 | isoWeekYearElem ? parseOperand(expCtx, isoWeekYearElem, vps) : nullptr, | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1100:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1100 | isoWeekElem ? parseOperand(expCtx, isoWeekElem, vps) : nullptr, | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1101:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1101 | isoDayOfWeekElem ? parseOperand(expCtx, isoDayOfWeekElem, vps) : nullptr, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1102:22: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1102 | timeZoneElem ? parseOperand(expCtx, timeZoneElem, vps) : nullptr); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionDateFromString::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:1364:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1364 | intrusive_ptr ExpressionDateFromString::parse( | ^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1429:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1429 | parseOperand(expCtx, dateStringElem, vps), | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1430:22: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1430 | timeZoneElem ? parseOperand(expCtx, timeZoneElem, vps) : nullptr, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1431:20: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1431 | formatElem ? parseOperand(expCtx, formatElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1432:20: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1432 | onNullElem ? parseOperand(expCtx, onNullElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1433:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1433 | onErrorElem ? parseOperand(expCtx, onErrorElem, vps) : nullptr); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionDateToParts::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:1572:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1572 | intrusive_ptr ExpressionDateToParts::parse( | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1606:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1606 | parseOperand(expCtx, dateElem, vps), | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1607:22: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1607 | timeZoneElem ? parseOperand(expCtx, timeZoneElem, vps) : nullptr, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1608:21: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1608 | isoDateElem ? parseOperand(expCtx, isoDateElem, vps) : nullptr); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionDateToString::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:1721:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1721 | intrusive_ptr ExpressionDateToString::parse( | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1775:51: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1775 | parseOperand(expCtx, dateElem, vps), | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1776:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1776 | formatElem ? parseOperand(expCtx, formatElem, vps) : nullptr, | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1777:52: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1777 | timeZoneElem ? parseOperand(expCtx, timeZoneElem, vps) | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1778 | : nullptr, | ~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:1779:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1779 | onNullElem ? parseOperand(expCtx, onNullElem, vps) : nullptr); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionFilter::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:2191:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2191 | intrusive_ptr ExpressionFilter::parse( | ^~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:2220:76: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2220 | intrusive_ptr input = parseOperand(expCtx, inputElem, vpsIn); | ^ src/mongo/db/pipeline/expression.cpp:2232:75: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2232 | intrusive_ptr cond = parseOperand(expCtx, condElem, vpsSub); | ^ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionMap::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:2417:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2417 | intrusive_ptr ExpressionMap::parse( | ^~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:2448:46: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2448 | parseOperand(expCtx, inputElem, vpsIn); // only has outer vars | ^ src/mongo/db/pipeline/expression.cpp:2461:44: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2461 | parseOperand(expCtx, inElem, vpsSub); // has access to map variable | ^ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionReduce::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:3636:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 3636 | intrusive_ptr ExpressionReduce::parse( | ^~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:3656:42: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 3656 | reduce->_input = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:3658:44: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 3658 | reduce->_initial = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:3660:39: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 3660 | reduce->_in = parseOperand(expCtx, elem, vpsSub); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionTrim::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:4639:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 4639 | intrusive_ptr ExpressionTrim::parse( | ^~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4662:33: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4662 | input = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4664:38: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4664 | characters = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionZip::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:4897:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 4897 | intrusive_ptr ExpressionZip::parse( | ^~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4916:55: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4916 | newZip->_inputs.push_back(parseOperand(expCtx, subExpr, vps)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4924:57: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4924 | newZip->_defaults.push_back(parseOperand(expCtx, subExpr, vps)); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/query/query_request.cpp: In static member function 'static bool mongo::QueryRequest::isTextScoreMeta(mongo::BSONElement)': src/mongo/db/query/query_request.cpp:671:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 671 | bool QueryRequest::isTextScoreMeta(BSONElement elt) { | ^~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionConvert::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:5561:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 5561 | intrusive_ptr ExpressionConvert::parse( | ^~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5575:46: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5575 | newConvert->_input = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5577:43: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5577 | newConvert->_to = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5579:48: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5579 | newConvert->_onError = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:5581:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 5581 | newConvert->_onNull = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionSwitch::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:4485:34: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 4485 | boost::intrusive_ptr ExpressionSwitch::parse( | ^~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4518:62: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4518 | branchExpression.first = parseOperand(expCtx, branchElement, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4520:63: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4520 | branchExpression.second = parseOperand(expCtx, branchElement, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:4539:48: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 4539 | expression->_default = parseOperand(expCtx, elem, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionLet::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:2319:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2319 | intrusive_ptr ExpressionLet::parse( | ^~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:2354:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2354 | parseOperand(expCtx, varElem, vpsIn)); // only has outer vars | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:2358:82: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 2358 | intrusive_ptr subExpression = parseOperand(expCtx, inElem, vpsSub); // has our vars | ^ In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionDayOfMonth]': src/mongo/db/pipeline/expression.h:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionDayOfWeek]': src/mongo/db/pipeline/expression.h:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionDayOfYear]': src/mongo/db/pipeline/expression.h:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionHour]': src/mongo/db/pipeline/expression.h:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIsoDayOfWeek]': src/mongo/db/pipeline/expression.h:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIsoWeek]': src/mongo/db/pipeline/expression.h:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIsoWeekYear]': src/mongo/db/pipeline/expression.h:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionMillisecond]': src/mongo/db/pipeline/expression.h:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionMinute]': src/mongo/db/pipeline/expression.h:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionMonth]': src/mongo/db/pipeline/expression.h:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/dur.cpp:85: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSecond]': src/mongo/db/pipeline/expression.h:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/dur.cpp:85: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionWeek]': src/mongo/db/pipeline/expression.h:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/query/query_request.cpp: In static member function 'static mongo::StatusWith mongo::QueryRequest::parseMaxTimeMS(mongo::BSONElement)': src/mongo/db/query/query_request.cpp:648:17: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 648 | StatusWith QueryRequest::parseMaxTimeMS(BSONElement maxTimeMSElt) { | ^~~~~~~~~~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::DateExpressionAcceptingTimeZone::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionYear]': src/mongo/db/pipeline/expression.h:579:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 579 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:598:47: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 598 | dateExpression->_date = | ~~~~~~~~~~~~~~~~~~~~~~^ 599 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:601:51: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 601 | dateExpression->_timeZone = | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ 602 | Expression::parseOperand(expCtx, subElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.h:630:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 630 | dateExpression->_date = Expression::parseOperand(expCtx, operatorElem, variablesParseState); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/dur.cpp:85: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/dur.cpp:85: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/dbcheck_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetIsSubset]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIndexOfArray]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionType]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionTrunc]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionToUpper]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/query/query_request.cpp: In member function 'mongo::Status mongo::QueryRequest::initFullQuery(const mongo::BSONObj&)': src/mongo/db/query/query_request.cpp:894:61: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 894 | StatusWith maxTimeMS = parseMaxTimeMS(e); | ^ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionToLower]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSubtract]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionStrLenCP]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionStrLenBytes]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSubstrCP]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSubstrBytes]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionStrcasecmp]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSqrt]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSplit]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIsArray]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSlice]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionReverseArray]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSize]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionSetDifference]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/query/query_request.cpp: In static member function 'static mongo::StatusWith > mongo::QueryRequest::parseFromFindCommand(std::unique_ptr, const mongo::BSONObj&, bool)': src/mongo/db/query/query_request.cpp:280:58: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 280 | StatusWith maxTimeMS = parseMaxTimeMS(el); | ^ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionRange]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionPow]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionNot]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionMod]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionLog10]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionLog]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ In file included from src/mongo/platform/decimal128.h:41, from src/mongo/platform/endian.h:40, from src/mongo/base/data_range.h:40, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/jsobj.h:49, from src/mongo/db/catalog/collection_options.h:38, from src/mongo/db/query/query_request.h:36, from src/mongo/db/query/query_request.cpp:33: src/mongo/db/query/query_request.cpp: In static member function 'static mongo::StatusWith > mongo::QueryRequest::makeFromFindCommand(mongo::NamespaceString, const mongo::BSONObj&, bool)': src/mongo/db/query/query_request.cpp:409:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 409 | auto uuid = uassertStatusOK(UUID::parse(first)); | ~~~~~~~~~~~^~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionLn]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIndexOfCP]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIndexOfBytes]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIn]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionIfNull]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFloor]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionExp]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionDivide]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.cpp: In static member function 'static boost::intrusive_ptr mongo::ExpressionCond::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/expression.cpp:906:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 906 | intrusive_ptr ExpressionCond::parse( | ^~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.cpp:921:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 921 | ret->vpOperand[0] = parseOperand(expCtx, arg, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:923:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 923 | ret->vpOperand[1] = parseOperand(expCtx, arg, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/expression.cpp:925:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 925 | ret->vpOperand[2] = parseOperand(expCtx, arg, vps); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/expression.cpp:34: src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionCeil]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionArrayToObject]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionObjectToArray]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionArrayElemAt]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAnyElementTrue]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAllElementsTrue]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionAbs]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ ar rcsTD build/opt/mongo/db/query/libquery_request.a build/opt/mongo/db/query/query_request.o build/opt/mongo/db/query/tailable_mode.o build/opt/mongo/db/query/tailable_mode_gen.o Skipping ranlib for thin archive build/opt/mongo/db/query/libquery_request.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_icu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/shim_icu.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/client_metadata_ismaster.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/metadata/client_metadata_ismaster.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/mmap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/mmap.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/dur.cpp:85: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/mmap_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/mmap_posix.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/record_access_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/record_access_tracker.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/sasl_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/sasl_options.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/collection_index_usage_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/collection_index_usage_tracker.cpp ar rcsTD build/opt/mongo/db/storage/mmap_v1/librecord_access_tracker.a build/opt/mongo/db/storage/mmap_v1/record_access_tracker.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/librecord_access_tracker.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantexpd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantexpd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2r2rect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2r2rect.cc ar rcsTD build/opt/mongo/db/storage/mmap_v1/libmmap.a build/opt/mongo/db/storage/mmap_v1/mmap.o build/opt/mongo/db/storage/mmap_v1/mmap_posix.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libmmap.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/array_culling_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/array_culling_node.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collation.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/freshness_checker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/freshness_checker.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/kv/kv_database_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/kv/kv_database_catalog_entry.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/array_culling_node.h:34, from src/mongo/db/update/array_culling_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/array_culling_node.h:34, from src/mongo/db/update/array_culling_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_type.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_sort.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sort.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/freshness_checker.h:33, from src/mongo/db/repl/freshness_checker.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::executor::RemoteCommandRequest}; _Tp = mongo::executor::RemoteCommandRequest; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_type.h:33, from src/mongo/db/matcher/expression_type.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_type.h:33, from src/mongo/db/matcher/expression_type.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual std::vector mongo::repl::FreshnessChecker::Algorithm::getRequests() const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_type.h:33, from src/mongo/db/matcher/expression_type.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/txn_cmds.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/txn_cmds.cpp In file included from src/mongo/db/matcher/expression_type.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/bocsu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/bocsu.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ubidi.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ubidi.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/subplan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/subplan.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/generic_servers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/generic_servers.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/txn_cmds.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/txn_cmds.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/txn_cmds.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/txn_cmds.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/exec/subplan.h:41, from src/mongo/db/exec/subplan.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/exec/subplan.h:41, from src/mongo/db/exec/subplan.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/exec/subplan.h:41, from src/mongo/db/exec/subplan.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/exec/subplan.h:41, from src/mongo/db/exec/subplan.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic_servers.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic_servers.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic_servers.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic_servers.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/txn_cmds.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/generic_servers.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_time_validator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_time_validator.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/exec/subplan.h:41, from src/mongo/db/exec/subplan.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonobj.h:40, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_sort.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceSort::create(const boost::intrusive_ptr&, mongo::BSONObj, long long int, uint64_t, bool)': src/mongo/db/pipeline/document_source_sort.cpp:295:59: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 295 | patternPart.expression = ExpressionMeta::parse(pExpCtx, metaDoc.firstElement(), vps); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_sort.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceSort::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_sort.cpp:255:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 255 | intrusive_ptr DocumentSourceSort::createFromBson( | ^~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_sort.h:34, from src/mongo/db/pipeline/document_source_sort.cpp:33: src/mongo/db/pipeline/document_source_sort.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_sort(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_sort.cpp:122:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 122 | REGISTER_DOCUMENT_SOURCE(sort, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonobj.h:40, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const std::pair&}; _Tp = std::pair; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector, std::allocator > >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:128:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 128 | __push_heap(_RandomAccessIterator __first, | ^~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:326:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 326 | __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:326:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__pop_heap(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 243 | __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Val_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2038 | __upper_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:69, from src/mongo/db/concurrency/lock_manager.h:34, from src/mongo/db/concurrency/locker.h:36, from src/mongo/db/operation_context.h:39, from src/mongo/db/index/sort_key_generator.h:35, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc: In member function 'void std::deque<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::_Deque_iterator, const std::pair&, const std::pair*>; _Tp = std::pair; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:441:7: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 441 | deque<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:441:7: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/safe_num.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/safe_num.cpp /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_BI2 std::move_backward(_BI1, _BI1, _BI2) [with _BI1 = std::_Deque_iterator, std::pair&, std::pair*>; _BI2 = std::_Deque_iterator, std::pair&, std::pair*>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:676:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 676 | move_backward(_BI1 __first, _BI1 __last, _BI2 __result) | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:676:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:676:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Val_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2038 | __upper_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_OI std::move(_II, _II, _OI) [with _II = std::_Deque_iterator, std::pair&, std::pair*>; _OI = std::pair*]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:497:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 497 | move(_II __first, _II __last, _OI __result) | ^~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:497:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::_V2::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1328 | __rotate(_RandomAccessIterator __first, | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2471 | __merge_without_buffer(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2496 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2497 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2505 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2506 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2512 | std::__merge_without_buffer(__first, __first_cut, __new_middle, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2513 | __len11, __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2514 | std::__merge_without_buffer(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2515 | __len1 - __len11, __len2 - __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2755 | __inplace_stable_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2760:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2760 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2764:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2764 | std::__inplace_stable_sort(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2765:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2765 | std::__inplace_stable_sort(__middle, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2766 | std::__merge_without_buffer(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2767 | __middle - __first, | ~~~~~~~~~~~~~~~~~~~ 2768 | __last - __middle, | ~~~~~~~~~~~~~~~~~~ 2769 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_BidirectionalIterator1 std::__rotate_adaptive(_BidirectionalIterator1, _BidirectionalIterator1, _BidirectionalIterator1, _Distance, _Distance, _BidirectionalIterator2, _Distance) [with _BidirectionalIterator1 = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _BidirectionalIterator2 = std::pair*; _Distance = int]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2372 | __rotate_adaptive(_BidirectionalIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_adaptive(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2410 | __merge_adaptive(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2440 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2441 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2449 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2450 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2455 | = std::__rotate_adaptive(__first_cut, __middle, __second_cut, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2456 | __len1 - __len11, __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2457 | __buffer_size); | ~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2458 | std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2459 | __len22, __buffer, __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2460 | std::__merge_adaptive(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2461 | __len1 - __len11, | ~~~~~~~~~~~~~~~~~ 2462 | __len2 - __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2463 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _OutputIterator = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::pair*; _OutputIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_with_buffer(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2699 | __merge_sort_with_buffer(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2689 | std::__insertion_sort(__first, __first + __chunk_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__stable_sort_adaptive(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Distance, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Pointer = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2726 | __stable_sort_adaptive(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2735:31: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2735 | std::__stable_sort_adaptive(__first, __middle, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2736 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2737:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2737 | std::__stable_sort_adaptive(__middle, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2738 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2742:33: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2742 | std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2743:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2743 | std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2745 | std::__merge_adaptive(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2746 | _Distance(__middle - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2747 | _Distance(__last - __middle), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2748 | __buffer, __buffer_size, | ~~~~~~~~~~~~~~~~~~~~~~~~ 2749 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::TopKSorter::sort() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceSort::Comparator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::TopKSorter::spill() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceSort::Comparator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2116:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2116 | return std::__upper_bound(__first, __last, __val, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 2117 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonobj.h:40, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::sorter::TopKSorter::add(const Key&, const Value&) [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceSort::Comparator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:397:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 397 | std::__make_heap(__first, __last, __cmp); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:320:19: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 320 | std::__pop_heap(__first, __last, __last, __cmp); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::_V2::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1328 | __rotate(_RandomAccessIterator __first, | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2471 | __merge_without_buffer(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2496 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2497 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2505 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2506 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2512 | std::__merge_without_buffer(__first, __first_cut, __new_middle, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2513 | __len11, __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2514 | std::__merge_without_buffer(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2515 | __len1 - __len11, __len2 - __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2755 | __inplace_stable_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2760:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2760 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2764:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2764 | std::__inplace_stable_sort(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2765:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2765 | std::__inplace_stable_sort(__middle, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2766 | std::__merge_without_buffer(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2767 | __middle - __first, | ~~~~~~~~~~~~~~~~~~~ 2768 | __last - __middle, | ~~~~~~~~~~~~~~~~~~ 2769 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::_Deque_iterator, std::pair&, std::pair*>; _OutputIterator = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2651:14: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2651 | return _GLIBCXX_MOVE3(__first2, __last2, | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2651:14: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_loop(_RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2, _Distance, _Compare) [with _RandomAccessIterator1 = std::_Deque_iterator, std::pair&, std::pair*>; _RandomAccessIterator2 = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2659:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2659 | __merge_sort_loop(_RandomAccessIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2659:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = true; _II = std::pair*; _OI = std::_Deque_iterator, std::pair&, std::pair*>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:438:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 438 | __copy_move_a2(_II __first, _II __last, _OI __result) | ^~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::pair*; _OutputIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_with_buffer(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2699 | __merge_sort_with_buffer(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2689 | std::__insertion_sort(__first, __first + __chunk_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2714:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2714 | std::__merge_sort_loop(__first, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2715 | __step_size, __comp); | ~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_BI2 std::__copy_move_backward_a2(_BI1, _BI1, _BI2) [with bool _IsMove = true; _BI1 = std::pair*; _BI2 = std::_Deque_iterator, std::pair&, std::pair*>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:613:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 613 | __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) | ^~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:613:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_BidirectionalIterator1 std::__rotate_adaptive(_BidirectionalIterator1, _BidirectionalIterator1, _BidirectionalIterator1, _Distance, _Distance, _BidirectionalIterator2, _Distance) [with _BidirectionalIterator1 = std::_Deque_iterator, std::pair&, std::pair*>; _BidirectionalIterator2 = std::pair*; _Distance = int]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2372 | __rotate_adaptive(_BidirectionalIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2384:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2384 | __buffer_end = _GLIBCXX_MOVE3(__middle, __last, __buffer); | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2385 | _GLIBCXX_MOVE_BACKWARD3(__first, __middle, __last); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2395:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2395 | __buffer_end = _GLIBCXX_MOVE3(__first, __middle, __buffer); | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_adaptive(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare) [with _BidirectionalIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Distance = int; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2410 | __merge_adaptive(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2419:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2419 | _Pointer __buffer_end = _GLIBCXX_MOVE3(__first, __middle, __buffer); | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2425:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2425 | _Pointer __buffer_end = _GLIBCXX_MOVE3(__middle, __last, __buffer); | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2440 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2441 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2449 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2450 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2455 | = std::__rotate_adaptive(__first_cut, __middle, __second_cut, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2456 | __len1 - __len11, __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2457 | __buffer_size); | ~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2458 | std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2459 | __len22, __buffer, __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2460 | std::__merge_adaptive(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2461 | __len1 - __len11, | ~~~~~~~~~~~~~~~~~ 2462 | __len2 - __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2463 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bitset:47, from src/mongo/bson/bsonobj.h:35, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/bson/bsonobj.h:42, from src/mongo/db/index/sort_key_generator.h:33, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__stable_sort_adaptive(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Distance, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Pointer = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2726 | __stable_sort_adaptive(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2735:31: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2735 | std::__stable_sort_adaptive(__first, __middle, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2736 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2737:31: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2737 | std::__stable_sort_adaptive(__middle, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2738 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2742:33: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2742 | std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2743:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2743 | std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2745 | std::__merge_adaptive(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2746 | _Distance(__middle - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2747 | _Distance(__last - __middle), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2748 | __buffer, __buffer_size, | ~~~~~~~~~~~~~~~~~~~~~~~~ 2749 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::NoLimitSorter::sort() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceSort::Comparator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:67, from src/mongo/db/concurrency/lock_manager.h:34, from src/mongo/db/concurrency/locker.h:36, from src/mongo/db/operation_context.h:39, from src/mongo/db/index/sort_key_generator.h:35, from src/mongo/db/pipeline/document_source_sort.h:33, from src/mongo/db/pipeline/document_source_sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h: In member function 'mongo::sorter::NoLimitSorter::Iterator* mongo::sorter::NoLimitSorter::done() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceSort::Comparator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 1906 | _M_range_initialize(__first, __last, | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/secure_compare_memory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/secure_compare_memory.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/chariter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/chariter.cpp ar rcsTD build/opt/mongo/util/libsafe_num.a build/opt/mongo/util/safe_num.o Skipping ranlib for thin archive build/opt/mongo/util/libsafe_num.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_merge_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_merge_chunk_command.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/time_proof_service.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/time_proof_service.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ttl_collection_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ttl_collection_cache.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/fphdlimp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/fphdlimp.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/db.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/db/db.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod128.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod128.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/split_horizon.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/split_horizon.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/oplogstart.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/oplogstart.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/exec/collection_scan.h:37, from src/mongo/db/exec/oplogstart.h:36, from src/mongo/db/exec/oplogstart.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/exec/collection_scan.h:37, from src/mongo/db/exec/oplogstart.h:36, from src/mongo/db/exec/oplogstart.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/exec/collection_scan.h:37, from src/mongo/db/exec/oplogstart.h:36, from src/mongo/db/exec/oplogstart.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/oplogstart.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/db.cpp:55: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/db.cpp:55: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/db.cpp:55: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/db.cpp:55: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/decimalformatpattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/decimalformatpattern.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/transreg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/transreg.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_merge_chunk_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/kv/kv_storage_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/kv/kv_storage_engine.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_time_metadata_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_time_metadata_hook.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/oplogstart.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/op_observer_sharding_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/op_observer_sharding_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/plan_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/plan_cache.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/async_results_merger_params_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc build/opt/mongo/s/query/async_results_merger_params_gen.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/plan_cache.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/db.cpp:55: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/plan_cache.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/plan_cache.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/plan_cache.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/query/plan_cache.cpp:46: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from build/opt/mongo/s/query/async_results_merger_params_gen.cpp:9: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from build/opt/mongo/s/query/async_results_merger_params_gen.cpp:9: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.h:33, from src/mongo/db/s/op_observer_sharding_impl.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from build/opt/mongo/s/query/async_results_merger_params_gen.cpp:9: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/free_mon/free_mon_mongod.h:33, from src/mongo/db/db.cpp:75: src/mongo/db/op_observer_registry.h: In member function 'virtual void mongo::OpObserverRegistry::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/op_observer_registry.h:71:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 71 | void onInserts(OperationContext* const opCtx, | ^~~~~~~~~ src/mongo/db/op_observer_registry.h:71:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 src/mongo/db/op_observer_registry.h:79:25: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 79 | o->onInserts(opCtx, nss, uuid, begin, end, fromMigrate); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/op_observer_registry.h:79:25: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from build/opt/mongo/s/query/async_results_merger_params_gen.cpp:9: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/cecal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/cecal.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/value_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/value_comparator.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/value_comparator.h:37, from src/mongo/db/pipeline/value_comparator.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/plan_cache.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_consistency_markers_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from build/opt/mongo/s/query/async_results_merger_params_gen.cpp:9: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/scripting_server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/scripting/scripting_server.cpp ar rcsTD build/opt/mongo/scripting/libscripting_server.a build/opt/mongo/scripting/scripting_server.o Skipping ranlib for thin archive build/opt/mongo/scripting/libscripting_server.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtitvinf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dtitvinf.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/initialize_server_global_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/initialize_server_global_state.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from build/opt/mongo/s/query/async_results_merger_params_gen.h:14, from build/opt/mongo/s/query/async_results_merger_params_gen.cpp:9: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::RemoteCursor}; _Tp = mongo::RemoteCursor; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::AsyncResultsMergerParams::parseProtected(const mongo::IDLParserErrorContext&, const mongo::BSONObj&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/read_concern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/read_concern.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/read_concern.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/write_concern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/write_concern.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/replication_consistency_markers_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/read_concern.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/read_concern.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/read_concern.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/thread_safe_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/thread_safe_string.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/progress_meter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/progress_meter.cpp ar rcsTD build/opt/mongo/db/repl/libreplication_consistency_markers_idl.a build/opt/mongo/db/repl/replication_consistency_markers_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplication_consistency_markers_idl.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/mongo_process_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/mongo_process_common.cpp ar rcsTD build/opt/mongo/util/libprogress_meter.a build/opt/mongo/util/progress_meter.o build/opt/mongo/util/thread_safe_string.o Skipping ranlib for thin archive build/opt/mongo/util/libprogress_meter.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/scripting_none.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/scripting/scripting_none.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/key_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/key_string.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/mongo_process_interface.h:44, from src/mongo/db/pipeline/mongo_process_common.h:36, from src/mongo/db/pipeline/mongo_process_common.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/mongo_process_interface.h:44, from src/mongo/db/pipeline/mongo_process_common.h:36, from src/mongo/db/pipeline/mongo_process_common.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asin.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asin.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_recovery.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_recovery.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/read_concern.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/field_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/field_parser.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/replication_recovery.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/replication_recovery.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, bool*, std::string*)': src/mongo/db/field_parser.cpp:46:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 46 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, mongo::BSONArray*, std::string*)': src/mongo/db/field_parser.cpp:76:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 76 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, mongo::BSONObj*, std::string*)': src/mongo/db/field_parser.cpp:106:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 106 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/replication_recovery.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extractID(mongo::BSONElement, const mongo::BSONField&, mongo::BSONObj*, std::string*)': src/mongo/db/field_parser.cpp:429:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 429 | FieldParser::FieldState FieldParser::extractID(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, mongo::Date_t*, std::string*)': src/mongo/db/field_parser.cpp:136:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 136 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, mongo::Timestamp*, std::string*)': src/mongo/db/field_parser.cpp:166:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 166 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/replication_recovery.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField >&, std::string*, std::string*)': src/mongo/db/field_parser.cpp:195:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 195 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/libkey_string.a build/opt/mongo/db/storage/key_string.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libkey_string.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/titletrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/titletrn.cpp src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, mongo::OID*, std::string*)': src/mongo/db/field_parser.cpp:226:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 226 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ ar rcsTD build/opt/mongo/db/repl/libsplit_horizon.a build/opt/mongo/db/repl/split_horizon.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libsplit_horizon.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucasemap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucasemap.cpp src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, int*, std::string*)': src/mongo/db/field_parser.cpp:255:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 255 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extractNumber(mongo::BSONElement, const mongo::BSONField&, int*, std::string*)': src/mongo/db/field_parser.cpp:284:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 284 | FieldParser::FieldState FieldParser::extractNumber(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, long long int*, std::string*)': src/mongo/db/field_parser.cpp:313:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 313 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extractNumber(mongo::BSONElement, const mongo::BSONField&, long long int*, std::string*)': src/mongo/db/field_parser.cpp:342:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 342 | FieldParser::FieldState FieldParser::extractNumber(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField&, double*, std::string*)': src/mongo/db/field_parser.cpp:371:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 371 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/field_parser.cpp: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extractNumber(mongo::BSONElement, const mongo::BSONField&, double*, std::string*)': src/mongo/db/field_parser.cpp:400:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 400 | FieldParser::FieldState FieldParser::extractNumber(BSONElement elem, | ^~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/cwchar.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/cwchar.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_add.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_add.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/session_txn_record_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/session_txn_record_gen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/lasterror.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/lasterror.cpp ar rcsTD build/opt/mongo/db/librw_concern_d.a build/opt/mongo/db/read_concern.o build/opt/mongo/db/write_concern.o Skipping ranlib for thin archive build/opt/mongo/db/librw_concern_d.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nearbyintd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nearbyintd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_porter.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_porter.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/cmemory.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/cmemory.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_repair_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_repair_observer.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/liblasterror.a build/opt/mongo/db/lasterror.o Skipping ranlib for thin archive build/opt/mongo/db/liblasterror.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/killcursors_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/killcursors_response.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/replication_recovery.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_response.h:37, from src/mongo/db/query/killcursors_response.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_response.h:37, from src/mongo/db/query/killcursors_response.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/storage/libstorage_repair_observer.a build/opt/mongo/db/storage/storage_repair_observer.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_repair_observer.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unifunct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unifunct.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_buffer_proxy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_buffer_proxy.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_response.h:37, from src/mongo/db/query/killcursors_response.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/session_txn_record_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_response.h:37, from src/mongo/db/query/killcursors_response.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/pipeline/document_sources_gen.h --output build/opt/mongo/db/pipeline/document_sources_gen.cpp src/mongo/db/pipeline/document_sources.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_sources_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/pipeline/document_sources_gen.cpp ar rcsTD build/opt/mongo/db/repl/liboplog_buffer_proxy.a build/opt/mongo/db/repl/oplog_buffer_proxy.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_buffer_proxy.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/resume_token.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/resume_token.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/index_descriptor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/index_descriptor.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_response.h:37, from src/mongo/db/query/killcursors_response.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/resume_token.h:38, from build/opt/mongo/db/pipeline/document_sources_gen.h:21, from build/opt/mongo/db/pipeline/document_sources_gen.cpp:9: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/resume_token.h:38, from src/mongo/db/pipeline/resume_token.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/resume_token.h:38, from build/opt/mongo/db/pipeline/document_sources_gen.h:21, from build/opt/mongo/db/pipeline/document_sources_gen.cpp:9: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/resume_token.h:38, from src/mongo/db/pipeline/resume_token.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/query/killcursors_response.h:33, from src/mongo/db/query/killcursors_response.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {long long int}; _Tp = long long int; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'mongo::Status mongo::{anonymous}::fillOutCursorArray(const mongo::BSONObj&, mongo::StringData, std::vector*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/index_descriptor.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_sources_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/index_descriptor.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_sources_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/index_descriptor.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucurr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucurr.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/count.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/count.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/index_descriptor.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj.h:46, from src/mongo/db/pipeline/resume_token.h:36, from src/mongo/db/pipeline/resume_token.cpp:33: src/mongo/db/pipeline/resume_token.cpp: In member function 'mongo::ResumeTokenData mongo::ResumeToken::getData() const': src/mongo/db/pipeline/resume_token.cpp:221:58: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 221 | result.uuid = uassertStatusOK(UUID::parse(i.next())); | ~~~~~~~~~~~^~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ src/mongo/db/pipeline/resume_token.cpp:281:54: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 281 | result.uuid = uassertStatusOK(UUID::parse(i.next())); | ~~~~~~~~~~~^~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/sasl_client_authenticate_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/sasl_client_authenticate_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/count.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/count.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/count.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/count.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/pipeline/document_sources_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/libdocument_sources_idl.a build/opt/mongo/db/pipeline/document_sources_gen.o build/opt/mongo/db/pipeline/resume_token.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libdocument_sources_idl.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_tags.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/type_tags.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/index_descriptor.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/shard_collection_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc build/opt/mongo/s/request_types/shard_collection_gen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/move_chunk_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/request_types/move_chunk_request.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/count.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/shard_collection_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/shard_collection_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/commit_chunk_migration_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/request_types/commit_chunk_migration_request_type.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/shard_collection_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/shard_collection_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/move_primary_gen.h --output build/opt/mongo/s/request_types/move_primary_gen.cpp src/mongo/s/request_types/move_primary.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/move_primary_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc build/opt/mongo/s/request_types/move_primary_gen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/database_version_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc build/opt/mongo/s/database_version_gen.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/move_primary_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/move_primary_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/move_primary_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/shard_collection_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/move_primary_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/database_version_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/merge_chunk_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/request_types/merge_chunk_request_type.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/database_version_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/database_version_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/database_version_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/move_primary_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/clone_catalog_data_gen.h --output build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp src/mongo/s/request_types/clone_catalog_data.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/clone_catalog_data_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/database_version_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/split_chunk_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/request_types/split_chunk_request_type.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/type_database.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/type_collection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/balance_chunk_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/request_types/balance_chunk_request_type.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/database_version_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/database_version_helpers.cpp src/mongo/s/catalog/type_collection.cpp: In static member function 'static mongo::StatusWith mongo::CollectionType::fromBSON(const mongo::BSONObj&)': src/mongo/s/catalog/type_collection.cpp:159:47: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 159 | auto swUUID = UUID::parse(uuidElem); | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/add_shard_to_zone_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/request_types/add_shard_to_zone_request_type.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/migration_secondary_throttle_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/request_types/migration_secondary_throttle_options.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_catalog_data_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_changelog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/type_changelog.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_config_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/type_config_version.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_shard_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/type_shard_collection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/remove_shard_from_zone_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/request_types/remove_shard_from_zone_request_type.cpp src/mongo/s/catalog/type_shard_collection.cpp: In static member function 'static mongo::StatusWith mongo::ShardCollectionType::fromBSON(const mongo::BSONObj&)': src/mongo/s/catalog/type_shard_collection.cpp:87:49: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 87 | auto uuidWith = UUID::parse(uuidElem); | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/mongo_version_range.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/mongo_version_range.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.h --output build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp src/mongo/s/request_types/flush_routing_table_cache_updates.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/create_collection_gen.h --output build/opt/mongo/s/request_types/create_collection_gen.cpp src/mongo/s/request_types/create_collection.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/create_collection_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc build/opt/mongo/s/request_types/create_collection_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_chunk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/type_chunk.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/stale_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/stale_exception.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_chunk_base_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc build/opt/mongo/s/catalog/type_chunk_base_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_collection_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/update_zone_key_range_request_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/request_types/update_zone_key_range_request_type.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_chunk_base_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_chunk_base_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_chunk_base_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/flush_database_cache_updates_gen.h --output build/opt/mongo/s/request_types/flush_database_cache_updates_gen.cpp src/mongo/s/request_types/flush_database_cache_updates.idl In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_chunk_base_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_locks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/type_locks.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/flush_database_cache_updates_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc build/opt/mongo/s/request_types/flush_database_cache_updates_gen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/get_database_version_gen.h --output build/opt/mongo/s/request_types/get_database_version_gen.cpp src/mongo/s/request_types/get_database_version.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/get_database_version_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc build/opt/mongo/s/request_types/get_database_version_gen.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_database_cache_updates_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_database_cache_updates_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_database_cache_updates_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_database_cache_updates_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_lockpings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/type_lockpings.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/catalog/type_chunk_base_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/get_database_version_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/cannot_implicitly_create_collection_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/cannot_implicitly_create_collection_info.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/get_database_version_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/get_database_version_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/get_database_version_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/set_shard_version_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/request_types/set_shard_version_request.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/flush_database_cache_updates_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/type_shard_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/type_shard_database.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/s/request_types/create_database_gen.h --output build/opt/mongo/s/request_types/create_database_gen.cpp src/mongo/s/request_types/create_database.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/request_types/create_database_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc build/opt/mongo/s/request_types/create_database_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/get_database_version_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_u16.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_u16.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/search.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/search.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbisetb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbisetb.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/coptccal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/coptccal.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/clone_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/clone_collection.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cos.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cos.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cbrt.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cbrt.c In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_database_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/variables.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/variables.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_database_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nexttowardd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nexttowardd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uhash_us.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uhash_us.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_database_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_database_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libindex_key_validate.a build/opt/mongo/db/catalog/index_key_validate.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libindex_key_validate.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/haystack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/haystack.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/variables.h:33, from src/mongo/db/pipeline/variables.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/variables.h:33, from src/mongo/db/pipeline/variables.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/clone_collection.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/clone_collection.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/clone_collection.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/clone_collection.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lrintd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lrintd.c ar rcsTD build/opt/mongo/util/libicu.a build/opt/mongo/util/icu.o Skipping ranlib for thin archive build/opt/mongo/util/libicu.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/task_executor_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/executor/task_executor_pool.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/haystack.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/haystack.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/haystack.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/haystack.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/s/request_types/create_database_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/libcommon_s.a build/opt/mongo/s/catalog/mongo_version_range.o build/opt/mongo/s/catalog/type_changelog.o build/opt/mongo/s/catalog/type_chunk.o build/opt/mongo/s/catalog/type_collection.o build/opt/mongo/s/catalog/type_config_version.o build/opt/mongo/s/catalog/type_database.o build/opt/mongo/s/catalog/type_lockpings.o build/opt/mongo/s/catalog/type_locks.o build/opt/mongo/s/catalog/type_mongos.o build/opt/mongo/s/catalog/type_shard_collection.o build/opt/mongo/s/catalog/type_shard_database.o build/opt/mongo/s/catalog/type_shard.o build/opt/mongo/s/catalog/type_tags.o build/opt/mongo/s/request_types/add_shard_request_type.o build/opt/mongo/s/request_types/add_shard_to_zone_request_type.o build/opt/mongo/s/request_types/balance_chunk_request_type.o build/opt/mongo/s/request_types/commit_chunk_migration_request_type.o build/opt/mongo/s/request_types/merge_chunk_request_type.o build/opt/mongo/s/request_types/migration_secondary_throttle_options.o build/opt/mongo/s/request_types/move_chunk_request.o build/opt/mongo/s/request_types/remove_shard_from_zone_request_type.o build/opt/mongo/s/request_types/set_shard_version_request.o build/opt/mongo/s/request_types/split_chunk_request_type.o build/opt/mongo/s/request_types/update_zone_key_range_request_type.o build/opt/mongo/s/cannot_implicitly_create_collection_info.o build/opt/mongo/s/chunk_version.o build/opt/mongo/s/database_version_helpers.o build/opt/mongo/s/shard_id.o build/opt/mongo/s/stale_exception.o build/opt/mongo/s/catalog/type_chunk_base_gen.o build/opt/mongo/s/database_version_gen.o build/opt/mongo/s/request_types/clone_catalog_data_gen.o build/opt/mongo/s/request_types/create_collection_gen.o build/opt/mongo/s/request_types/create_database_gen.o build/opt/mongo/s/request_types/flush_database_cache_updates_gen.o build/opt/mongo/s/request_types/flush_routing_table_cache_updates_gen.o build/opt/mongo/s/request_types/get_database_version_gen.o build/opt/mongo/s/request_types/move_primary_gen.o build/opt/mongo/s/request_types/shard_collection_gen.o build/opt/mongo/s/request_types/clone_collection_options_from_primary_shard_gen.o Skipping ranlib for thin archive build/opt/mongo/s/libcommon_s.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/split_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/split_chunk_command.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fdimd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fdimd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/keypattern.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/keypattern.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/clone_collection.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/field_ref_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/field_ref_set.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_command.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/haystack.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libcommon.a build/opt/mongo/db/field_ref.o build/opt/mongo/db/field_ref_set.o build/opt/mongo/db/field_parser.o build/opt/mongo/db/keypattern.o Skipping ranlib for thin archive build/opt/mongo/db/libcommon.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucsdet.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucsdet.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_snappy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_snappy.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/options_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/options_parser.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/chunk_splitter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/chunk_splitter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/simpletz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/simpletz.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fma.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fma.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_chunk_command.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/field_checker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/field_checker.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authorization_manager_global.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authorization_manager_global.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cos.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cos.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/find_and_modify_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/find_and_modify_common.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/find_and_modify_common.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/find_and_modify_common.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/find_and_modify_common.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libauthorization_manager_global.a build/opt/mongo/db/auth/authorization_manager_global.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauthorization_manager_global.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/stage_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/stage_builder.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/find_and_modify_common.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/service_liaison.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/service_liaison.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/update_driver.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/update_driver.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/stage_builder.h:35, from src/mongo/db/query/stage_builder.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/stage_builder.h:35, from src/mongo/db/query/stage_builder.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/stage_builder.h:35, from src/mongo/db/query/stage_builder.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/stage_builder.h:35, from src/mongo/db/query/stage_builder.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libservice_liaison.a build/opt/mongo/db/service_liaison.o Skipping ranlib for thin archive build/opt/mongo/db/libservice_liaison.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/strnlen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/platform/strnlen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod128.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod128.c /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/catalog/health_log_gen.h --output build/opt/mongo/db/catalog/health_log_gen.cpp src/mongo/db/catalog/health_log.idl In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/find_and_modify_common.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/health_log.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/health_log.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/update/update_driver.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/update/update_driver.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/update/update_driver.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/update/update_driver.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/catalog/health_log.h:34, from src/mongo/db/catalog/health_log.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/catalog/health_log.h:34, from src/mongo/db/catalog/health_log.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/catalog/health_log.h:34, from src/mongo/db/catalog/health_log.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/catalog/health_log.h:34, from src/mongo/db/catalog/health_log.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/update/update_driver.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/stage_builder.h:35, from src/mongo/db/query/stage_builder.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/update/update_driver.cpp: In member function 'mongo::Status mongo::UpdateDriver::parse(const mongo::BSONObj&, const std::map >&, bool)': src/mongo/db/update/update_driver.cpp:132:77: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 132 | root, modType, field, expCtx, arrayFilters, foundIdentifiers); | ^ src/mongo/db/update/update_driver.cpp:132:77: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 In file included from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:43: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:151:42: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 151 | memset(this, 0, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:160:43: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 160 | memcpy(this, &e, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ ar rcsTD build/opt/mongo/db/update/libupdate_driver.a build/opt/mongo/db/update/update_driver.o Skipping ranlib for thin archive build/opt/mongo/db/update/libupdate_driver.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/background_thread_clock_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/background_thread_clock_source.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint64.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint64.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/catalog/health_log.h:34, from src/mongo/db/catalog/health_log.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uregexc.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uregexc.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/stringutils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/stringutils.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint32.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint32.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucol_res.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucol_res.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/collection_info_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/collection_info_cache.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/stats/read_concern_stats_gen.h --output build/opt/mongo/db/stats/read_concern_stats_gen.cpp src/mongo/db/stats/read_concern_stats.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/find_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/find_cmd.cpp src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp: In member function 'virtual bool mongo::NamespaceDetailsCollectionCatalogEntry::isEqualToMetadataUUID(mongo::OperationContext*, mongo::OptionalCollectionUUID)': src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:474:52: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 474 | return !optionsObj["uuid"].eoo() && UUID::parse(optionsObj["uuid"]).getValue() == uuid; | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalbl.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalbl.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/cluster_cursor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/cluster_cursor_manager.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj.h:46, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.h:36, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:35: src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp: In member function 'virtual void mongo::NamespaceDetailsCollectionCatalogEntry::addUUID(mongo::OperationContext*, mongo::CollectionUUID, mongo::Collection*)': src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:452:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 452 | fassert(40565, UUID::parse(namespacesBson["options"].Obj()["uuid"]).getValue() == uuid); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:271:57: note: in definition of macro 'MONGO_fassert' 271 | #define MONGO_fassert(...) ::mongo::fassertWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp:452:9: note: in expansion of macro 'fassert' 452 | fassert(40565, UUID::parse(namespacesBson["options"].Obj()["uuid"]).getValue() == uuid); | ^~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/find_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/find_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/find_cmd.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantexpd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantexpd.c src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/update_lifecycle_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/update_lifecycle_impl.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/find_cmd.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/update_lifecycle_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/update_lifecycle_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/s/query/cluster_cursor_manager.cpp: In member function 'mongo::StatusWith > mongo::ClusterCursorManager::_detachCursor(mongo::WithLock, const mongo::NamespaceString&, mongo::CursorId)': src/mongo/s/query/cluster_cursor_manager.cpp:705:21: warning: redundant move in return statement [-Wredundant-move] 705 | return std::move(cursor); | ~~~~~~~~~^~~~~~~~ src/mongo/s/query/cluster_cursor_manager.cpp:705:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/update_lifecycle_impl.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/fail_point_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/fail_point_cmd.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/update_lifecycle_impl.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/query/cluster_cursor_manager.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fail_point_cmd.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fail_point_cmd.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fail_point_cmd.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fail_point_cmd.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/find_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/s/query/cluster_cursor_manager.h:35, from src/mongo/s/query/cluster_cursor_manager.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {}; _Tp = mongo::GenericCursor; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'std::vector mongo::ClusterCursorManager::getAllCursors() const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/update_lifecycle_impl.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uinit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uinit.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_merge_objects.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_merge_objects.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/remote_command_targeter_rs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/remote_command_targeter_rs.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/fail_point_cmd.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/remote_command_targeter_factory_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/remote_command_targeter_factory_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_merge_objects.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_merge_objects.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/fast_clock_source_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/fast_clock_source_factory.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unifilt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unifilt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucharstriebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucharstriebuilder.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fmod.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fmod.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_get_status_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_get_status_cmd.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/drop_pending_collection_reaper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/drop_pending_collection_reaper.cpp ar rcsTD build/opt/mongo/client/libremote_command_targeter.a build/opt/mongo/client/remote_command_targeter_factory_impl.o build/opt/mongo/client/remote_command_targeter_rs.o build/opt/mongo/client/remote_command_targeter_standalone.o Skipping ranlib for thin archive build/opt/mongo/client/libremote_command_targeter.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/index_spec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/index_spec.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulator.h:35, from src/mongo/db/pipeline/accumulator_merge_objects.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = boost::intrusive_ptr; _Functor = boost::intrusive_ptr (*)(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&); _ArgTypes = {const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&}]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ In file included from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_merge_objects.cpp:33: src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tgamma.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tgamma.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/router_stage_skip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/router_stage_skip.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/parsed_add_fields.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/parsed_add_fields.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/parsed_aggregation_projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/parsed_aggregation_projection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/parsed_add_fields.h:35, from src/mongo/db/pipeline/parsed_add_fields.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/parsed_add_fields.h:35, from src/mongo/db/pipeline/parsed_add_fields.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_get_status_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/parsed_exclusion_projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/parsed_exclusion_projection.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_add_fields.h:37, from src/mongo/db/pipeline/parsed_add_fields.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/drop_pending_collection_reaper.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_add_fields.h:37, from src/mongo/db/pipeline/parsed_add_fields.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/parsed_inclusion_projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/parsed_inclusion_projection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_exclusion_projection.h:36, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_exclusion_projection.h:36, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_exclusion_projection.h:36, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_add_fields.h:37, from src/mongo/db/pipeline/parsed_add_fields.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_exclusion_projection.h:36, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/parsed_inclusion_projection.h:35, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/parsed_inclusion_projection.h:35, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/pipeline/parsed_add_fields.cpp: In member function 'void mongo::parsed_aggregation_projection::ParsedAddFields::parseSubObject(const mongo::BSONObj&, const mongo::VariablesParseState&, mongo::parsed_aggregation_projection::InclusionNode*)': src/mongo/db/pipeline/parsed_add_fields.cpp:132:60: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 132 | Expression::parseOperand(_expCtx, elem, variablesParseState)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/parsed_add_fields.cpp: In member function 'virtual void mongo::parsed_aggregation_projection::ParsedAddFields::parse(const mongo::BSONObj&)': src/mongo/db/pipeline/parsed_add_fields.cpp:80:41: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 80 | Expression::parseOperand(_expCtx, elem, _expCtx->variablesParseState)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_aggregation_projection.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/whats_my_uri_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/whats_my_uri_cmd.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_inclusion_projection.h:37, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_inclusion_projection.h:37, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_exclusion_projection.h:36, from src/mongo/db/pipeline/parsed_exclusion_projection.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/test_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/test_commands.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_uri_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_uri_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_uri_cmd.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_uri_cmd.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/parsed_aggregation_projection.h:39, from src/mongo/db/pipeline/parsed_inclusion_projection.h:37, from src/mongo/db/pipeline/parsed_inclusion_projection.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_where.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_where.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/test_commands.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/test_commands.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/test_commands.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/test_commands.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_where_base.h:33, from src/mongo/db/matcher/expression_where.h:33, from src/mongo/db/matcher/expression_where.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_where_base.h:33, from src/mongo/db/matcher/expression_where.h:33, from src/mongo/db/matcher/expression_where.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/whats_my_uri_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/parsed_inclusion_projection.cpp: In member function 'void mongo::parsed_aggregation_projection::ParsedInclusionProjection::parseSubObject(const mongo::BSONObj&, const mongo::VariablesParseState&, mongo::parsed_aggregation_projection::InclusionNode*)': src/mongo/db/pipeline/parsed_inclusion_projection.cpp:409:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 409 | Expression::parseOperand(_expCtx, elem, variablesParseState)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/parsed_inclusion_projection.cpp: In member function 'virtual void mongo::parsed_aggregation_projection::ParsedInclusionProjection::parse(const mongo::BSONObj&)': src/mongo/db/pipeline/parsed_inclusion_projection.cpp:329:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 329 | Expression::parseOperand(_expCtx, elem, _expCtx->variablesParseState)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/expression_where.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_avg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_avg.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/expression_where.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/libparsed_aggregation_projection.a build/opt/mongo/db/pipeline/parsed_aggregation_projection.o build/opt/mongo/db/pipeline/parsed_exclusion_projection.o build/opt/mongo/db/pipeline/parsed_inclusion_projection.o build/opt/mongo/db/pipeline/parsed_add_fields.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libparsed_aggregation_projection.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/astro.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/astro.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int8.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int8.c src/mongo/db/matcher/expression_where.cpp: In member function 'virtual std::unique_ptr mongo::WhereMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_where.cpp:108:21: warning: redundant move in return statement [-Wredundant-move] 108 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_where.cpp:108:21: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/asio-master/asio/src/asio.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include src/third_party/asio-master/asio/src/asio.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_avg.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_avg.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/expression_where.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/test_commands.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/drop_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/drop_indexes.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulator.h:35, from src/mongo/db/pipeline/accumulator_avg.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = boost::intrusive_ptr; _Functor = boost::intrusive_ptr (*)(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&); _ArgTypes = {const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&}]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ In file included from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_avg.cpp:33: src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/text_match.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/text_match.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tolowtrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tolowtrn.cpp ar rcsTD build/opt/mongo/db/commands/libshell_protocol.a build/opt/mongo/db/commands/test_commands.o build/opt/mongo/db/commands/whats_my_uri_cmd.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libshell_protocol.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_destination_manager_legacy_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_destination_manager_legacy_commands.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/text_or.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/text_or.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/drop_indexes.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/drop_indexes.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/drop_indexes.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/drop_indexes.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text_or.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text_or.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text_or.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/session_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/session_catalog.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text_or.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session_catalog.h:35, from src/mongo/db/session_catalog.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session_catalog.h:35, from src/mongo/db/session_catalog.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session_catalog.h:35, from src/mongo/db/session_catalog.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session_catalog.h:35, from src/mongo/db/session_catalog.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/migration_destination_manager_legacy_commands.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text_or.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/drop_indexes.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/transactions_stats_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/transactions_stats_gen.cpp In file included from src/mongo/db/matcher/matchable.h:38, from src/mongo/db/matcher/expression.h:41, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/text_or.h:35, from src/mongo/db/exec/text_or.cpp:31: src/mongo/db/matcher/path.h: In member function 'virtual mongo::ElementIterator* mongo::IndexKeyMatchableDocument::allocateIterator(const mongo::ElementPath*) const': src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/retryable_writes_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/retryable_writes_stats.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/single_transaction_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/single_transaction_stats.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/session_catalog.h:35, from src/mongo/db/session_catalog.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/single_transaction_stats.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/single_transaction_stats.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/retryable_writes_stats.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/retryable_writes_stats.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/single_transaction_stats.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/retryable_writes_stats.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_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::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/single_transaction_stats.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/retryable_writes_stats.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog_raii.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog_raii.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/transactions_stats_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog_raii.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog_raii.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog_raii.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/single_transaction_stats.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog_raii.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/server_transactions_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/server_transactions_metrics.cpp src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/retryable_writes_stats.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/transaction_history_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/transaction_history_iterator.cpp ar rcsTD build/opt/mongo/util/libdns_query.a build/opt/mongo/util/dns_query.o Skipping ranlib for thin archive build/opt/mongo/util/libdns_query.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/count_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/count_scan.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/server_transactions_metrics.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/server_transactions_metrics.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/server_transactions_metrics.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/server_transactions_metrics.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/count_scan.h:37, from src/mongo/db/exec/count_scan.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/count_scan.h:37, from src/mongo/db/exec/count_scan.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/count_scan.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/count_scan.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/router_stage_update_on_add_shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/router_stage_update_on_add_shard.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog_raii.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/server_transactions_metrics.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/router_stage_update_on_add_shard.h:33, from src/mongo/s/query/router_stage_update_on_add_shard.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/router_stage_update_on_add_shard.h:33, from src/mongo/s/query/router_stage_update_on_add_shard.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/commands/profile_gen.h --output build/opt/mongo/db/commands/profile_gen.cpp src/mongo/db/commands/profile.idl ar rcsTD build/opt/mongo/db/libcatalog_raii.a build/opt/mongo/db/catalog_raii.o build/opt/mongo/db/retryable_writes_stats.o build/opt/mongo/db/server_transactions_metrics.o build/opt/mongo/db/session.o build/opt/mongo/db/session_catalog.o build/opt/mongo/db/single_transaction_stats.o build/opt/mongo/db/transaction_history_iterator.o build/opt/mongo/db/session_txn_record_gen.o build/opt/mongo/db/transactions_stats_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libcatalog_raii.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_cnv.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_cnv.c In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/router_stage_update_on_add_shard.h:33, from src/mongo/s/query/router_stage_update_on_add_shard.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/profile_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/commands/profile_gen.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uobject.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uobject.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/pipeline_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/pipeline_command.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/router_stage_update_on_add_shard.h:33, from src/mongo/s/query/router_stage_update_on_add_shard.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/count_scan.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_text_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_text_noop.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/profile_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/profile_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/profile_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/profile_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_command.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_command.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_command.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_command.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_command.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text_noop.h:34, from src/mongo/db/matcher/expression_text_noop.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text_noop.h:34, from src/mongo/db/matcher/expression_text_noop.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text_noop.h:34, from src/mongo/db/matcher/expression_text_noop.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_text_noop.cpp: In member function 'virtual std::unique_ptr mongo::TextNoOpMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_text_noop.cpp:59:21: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_text_noop.cpp:59:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/router_stage_update_on_add_shard.h:33, from src/mongo/s/query/router_stage_update_on_add_shard.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/commands/profile_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/ntservice.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/ntservice.cpp ar rcsTD build/opt/mongo/util/libntservice.a build/opt/mongo/util/ntservice.o Skipping ranlib for thin archive build/opt/mongo/util/libntservice.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_clock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_clock.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/connection_pool_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/executor/connection_pool_stats.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/pipeline_command.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_options.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationfcd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationfcd.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/metadata_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/metadata_manager.cpp ar rcsTD build/opt/mongo/executor/libconnection_pool_stats.a build/opt/mongo/executor/connection_pool_stats.o Skipping ranlib for thin archive build/opt/mongo/executor/libconnection_pool_stats.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/s2_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/s2_common.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/isself.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/isself.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/s/metadata_manager.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/s/metadata_manager.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/s/metadata_manager.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/s/metadata_manager.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_control_balancer_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_control_balancer_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/isself.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/isself.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/isself.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_bucket_auto.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_bucket_auto.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/isself.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/s/metadata_manager.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/isself.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket_auto.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket_auto.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/valueformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/valueformatter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atanh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atanh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp2.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp2.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalbl.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalbl.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_div.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_div.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cbrt.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cbrt.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atanh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atanh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_modf.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_modf.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atanh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atanh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_add.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_add.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_control_balancer_command.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asinh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asinh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalb.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalb.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan.c In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket_auto.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint16.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint16.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_string.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_string.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalbl.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalbl.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tan.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tan.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint8.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint8.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_ldexp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_ldexp.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint64.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint64.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantize.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantize.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod64.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod64.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod32.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod32.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tanh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tanh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantize.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantize.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalb.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalb.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_rem.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_rem.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log1p.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log1p.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int32.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int32.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_frexp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_frexp.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log1p.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log1p.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_minmax.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_minmax.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint8.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint8.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int16.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int16.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint32.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint32.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nexttowardd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nexttowardd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int32.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int32.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_modf.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_modf.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lround.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lround.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint64.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint64.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_hypot.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_hypot.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_round_integral.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_round_integral.c In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Val_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2038 | __upper_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Val_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2038 | __upper_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _OutputIterator = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::pair*; _OutputIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_lgamma.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_lgamma.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_noncomp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_noncomp.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_mul.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_mul.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log1p.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log1p.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lgamma.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lgamma.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log10.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log10.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tgamma.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tgamma.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan2.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan2.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log2.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log2.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cosh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cosh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_round_integral.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_round_integral.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_string.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_string.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logbd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logbd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sqrt.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sqrt.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logbd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logbd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan2.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan2.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fmod.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fmod.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lgamma.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lgamma.c In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:128:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 128 | __push_heap(_RandomAccessIterator __first, | ^~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_pow.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_pow.c /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_with_buffer(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2699 | __merge_sort_with_buffer(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2689 | std::__insertion_sort(__first, __first + __chunk_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tan.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tan.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod64.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod64.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp10.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp10.c In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::DocumentSourceBucketAuto::Bucket&}; _Tp = mongo::DocumentSourceBucketAuto::Bucket; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acos.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acos.c In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::DocumentSourceBucketAuto::addBucket(mongo::DocumentSourceBucketAuto::Bucket&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid128.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid128.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cbrt.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cbrt.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str_tables.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str_tables.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_frexp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_frexp.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sqrt.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sqrt.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint8.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint8.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tan.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tan.c src/mongo/db/pipeline/document_source_bucket_auto.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceBucketAuto::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_bucket_auto.cpp:442:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 442 | intrusive_ptr DocumentSourceBucketAuto::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nexttowardd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nexttowardd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_expm1.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_expm1.c In file included from src/mongo/db/pipeline/document_source_bucket_auto.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: src/mongo/db/pipeline/document_source_bucket_auto.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_bucketAuto(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_bucket_auto.cpp:45:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 45 | REGISTER_DOCUMENT_SOURCE(bucketAuto, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log2.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log2.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_frexp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_frexp.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantexpd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantexpd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_cbrt.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_cbrt.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lround.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lround.c In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const std::pair&}; _Tp = std::pair; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector, std::allocator > >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feraiseexcept.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feraiseexcept.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erfc.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erfc.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_minmax.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_minmax.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_llrintd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_llrintd.c In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:69, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/detail/container_fwd.hpp:91, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/container_hash/extensions.hpp:22, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/container_hash/hash.hpp:760, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/functional/hash.hpp:6, from src/mongo/db/pipeline/document.h:35, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc: In member function 'void std::deque<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::_Deque_iterator, const std::pair&, const std::pair*>; _Tp = std::pair; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:441:7: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 441 | deque<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:441:7: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint16.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint16.c In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_BI2 std::move_backward(_BI1, _BI1, _BI2) [with _BI1 = std::_Deque_iterator, std::pair&, std::pair*>; _BI2 = std::_Deque_iterator, std::pair&, std::pair*>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:676:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 676 | move_backward(_BI1 __first, _BI1 __last, _BI2 __result) | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:676:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:676:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_data.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_data.c /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_OI std::move(_II, _II, _OI) [with _II = std::_Deque_iterator, std::pair&, std::pair*>; _OI = std::pair*]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:497:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 497 | move(_II __first, _II __last, _OI __result) | ^~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log2.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log2.c /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:497:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::_Deque_iterator, std::pair&, std::pair*>; _OutputIterator = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2651:14: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2651 | return _GLIBCXX_MOVE3(__first2, __last2, | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2651:14: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::_V2::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1328 | __rotate(_RandomAccessIterator __first, | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sinh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sinh.c /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2471 | __merge_without_buffer(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2496 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2497 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2505 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2506 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2512 | std::__merge_without_buffer(__first, __first_cut, __new_middle, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2513 | __len11, __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2514 | std::__merge_without_buffer(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2515 | __len1 - __len11, __len2 - __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2755 | __inplace_stable_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2760:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2760 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2764:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2764 | std::__inplace_stable_sort(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2765:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2765 | std::__inplace_stable_sort(__middle, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2766 | std::__merge_without_buffer(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2767 | __middle - __first, | ~~~~~~~~~~~~~~~~~~~ 2768 | __last - __middle, | ~~~~~~~~~~~~~~~~~~ 2769 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_ldexp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_ldexp.c /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_BidirectionalIterator1 std::__rotate_adaptive(_BidirectionalIterator1, _BidirectionalIterator1, _BidirectionalIterator1, _Distance, _Distance, _BidirectionalIterator2, _Distance) [with _BidirectionalIterator1 = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _BidirectionalIterator2 = std::pair*; _Distance = int]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2372 | __rotate_adaptive(_BidirectionalIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_adaptive(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2410 | __merge_adaptive(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2440 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2441 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2449 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2450 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2455 | = std::__rotate_adaptive(__first_cut, __middle, __second_cut, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2456 | __len1 - __len11, __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2457 | __buffer_size); | ~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2458 | std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2459 | __len22, __buffer, __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2460 | std::__merge_adaptive(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2461 | __len1 - __len11, | ~~~~~~~~~~~~~~~~~ 2462 | __len2 - __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2463 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan2.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan2.c /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__stable_sort_adaptive(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Distance, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Pointer = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2726 | __stable_sort_adaptive(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2735:31: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2735 | std::__stable_sort_adaptive(__first, __middle, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2736 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2737:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2737 | std::__stable_sort_adaptive(__middle, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2738 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2742:33: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2742 | std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2743:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2743 | std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2745 | std::__merge_adaptive(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2746 | _Distance(__middle - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2747 | _Distance(__last - __middle), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2748 | __buffer, __buffer_size, | ~~~~~~~~~~~~~~~~~~~~~~~~ 2749 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::TopKSorter::spill() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceBucketAuto::populateSorter()::]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2116:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2116 | return std::__upper_bound(__first, __last, __val, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 2117 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp10.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp10.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp.c In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::sorter::TopKSorter::add(const Key&, const Value&) [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceBucketAuto::populateSorter()::]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp2.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp2.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_div.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_div.c In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'mongo::sorter::TopKSorter::Iterator* mongo::sorter::TopKSorter::done() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceBucketAuto::populateSorter()::]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erf.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erf.c /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::_V2::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1328 | __rotate(_RandomAccessIterator __first, | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2471 | __merge_without_buffer(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2496 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2497 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2505 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2506 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2512 | std::__merge_without_buffer(__first, __first_cut, __new_middle, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2513 | __len11, __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2514 | std::__merge_without_buffer(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2515 | __len1 - __len11, __len2 - __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2755 | __inplace_stable_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2764:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2764 | std::__inplace_stable_sort(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2765:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2765 | std::__inplace_stable_sort(__middle, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2766 | std::__merge_without_buffer(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2767 | __middle - __first, | ~~~~~~~~~~~~~~~~~~~ 2768 | __last - __middle, | ~~~~~~~~~~~~~~~~~~ 2769 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_mul.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_mul.c In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = true; _II = std::pair*; _OI = std::_Deque_iterator, std::pair&, std::pair*>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:438:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 438 | __copy_move_a2(_II __first, _II __last, _OI __result) | ^~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::pair*; _OutputIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_with_buffer(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2699 | __merge_sort_with_buffer(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_ldexp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_ldexp.c In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_BI2 std::__copy_move_backward_a2(_BI1, _BI1, _BI2) [with bool _IsMove = true; _BI1 = std::pair*; _BI2 = std::_Deque_iterator, std::pair&, std::pair*>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:613:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 613 | __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) | ^~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:613:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_BidirectionalIterator1 std::__rotate_adaptive(_BidirectionalIterator1, _BidirectionalIterator1, _BidirectionalIterator1, _Distance, _Distance, _BidirectionalIterator2, _Distance) [with _BidirectionalIterator1 = std::_Deque_iterator, std::pair&, std::pair*>; _BidirectionalIterator2 = std::pair*; _Distance = int]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2372 | __rotate_adaptive(_BidirectionalIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2384:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2384 | __buffer_end = _GLIBCXX_MOVE3(__middle, __last, __buffer); | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2385 | _GLIBCXX_MOVE_BACKWARD3(__first, __middle, __last); | ^~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2385:8: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2395:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2395 | __buffer_end = _GLIBCXX_MOVE3(__first, __middle, __buffer); | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_adaptive(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare) [with _BidirectionalIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Distance = int; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2410 | __merge_adaptive(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2419:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2419 | _Pointer __buffer_end = _GLIBCXX_MOVE3(__first, __middle, __buffer); | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2425:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2425 | _Pointer __buffer_end = _GLIBCXX_MOVE3(__middle, __last, __buffer); | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2440 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2441 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2449 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2450 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2455 | = std::__rotate_adaptive(__first_cut, __middle, __second_cut, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2456 | __len1 - __len11, __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2457 | __buffer_size); | ~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2458 | std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2459 | __len22, __buffer, __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2460 | std::__merge_adaptive(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2461 | __len1 - __len11, | ~~~~~~~~~~~~~~~~~ 2462 | __len2 - __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2463 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stdexcept:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/array:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/tuple:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:54, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulation_statement.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/data_type.h:38, from src/mongo/base/data_range.h:37, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/pipeline/accumulation_statement.h:35, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__stable_sort_adaptive(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Distance, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Pointer = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter >::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2726 | __stable_sort_adaptive(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2735:31: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2735 | std::__stable_sort_adaptive(__first, __middle, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2736 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2737:31: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2737 | std::__stable_sort_adaptive(__middle, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2738 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2742:33: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2742 | std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2743:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2743 | std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2745 | std::__merge_adaptive(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2746 | _Distance(__middle - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2747 | _Distance(__last - __middle), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2748 | __buffer, __buffer_size, | ~~~~~~~~~~~~~~~~~~~~~~~~ 2749 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::NoLimitSorter::sort() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceBucketAuto::populateSorter()::]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erf.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erf.c In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:67, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/detail/container_fwd.hpp:91, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/container_hash/extensions.hpp:22, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/container_hash/hash.hpp:760, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/functional/hash.hpp:6, from src/mongo/db/pipeline/document.h:35, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/document_source_bucket_auto.h:33, from src/mongo/db/pipeline/document_source_bucket_auto.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h: In member function 'mongo::sorter::NoLimitSorter::Iterator* mongo::sorter::NoLimitSorter::done() [with Key = mongo::Value; Value = mongo::Document; Comparator = mongo::DocumentSourceBucketAuto::populateSorter()::]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 1906 | _M_range_initialize(__first, __last, | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_next.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_next.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_next.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_next.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint32.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint32.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_erf.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_erf.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_four_over_pi.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_four_over_pi.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_int.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_int.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int64.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int64.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_rem.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_rem.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bessel.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bessel.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acos.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acos.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nearbyintd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nearbyintd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fetestexcept.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fetestexcept.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tanh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tanh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sin.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sin.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_minmax.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_minmax.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logb.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logb.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_llrintd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_llrintd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_globals.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_globals.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_dpd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_dpd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asin.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asin.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp10.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp10.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_expm1.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_expm1.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_compare.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_compare.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acosh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acosh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acos.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acos.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nearbyintd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nearbyintd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logbd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logbd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod32.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod32.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_div.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_div.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_mod.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_mod.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_round_integral.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_round_integral.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int8.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int8.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_powi.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_powi.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fma.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fma.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid64.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid64.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tgamma.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tgamma.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalb.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalb.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sqrt.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sqrt.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp2.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp2.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_binarydecimal.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_binarydecimal.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cosh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cosh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_string.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_string.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint16.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint16.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_log.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_log.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops_64.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops_64.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fesetexceptflag.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fesetexceptflag.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_mul.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_mul.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acosh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acosh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_compare.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_compare.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fdimd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fdimd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int64.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int64.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_pow.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_pow.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fegetexceptflag.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fegetexceptflag.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bid.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bid.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fmod.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fmod.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cosh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cosh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_llrintd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_llrintd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_trig.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_trig.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int16.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int16.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_convert_data.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_convert_data.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fdimd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fdimd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_hypot.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_hypot.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lrintd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lrintd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log10.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log10.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acosh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acosh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_trig.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_trig.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_exp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_exp.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_modf.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_modf.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_expm1.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_expm1.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erfc.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erfc.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/sqrt_tab_t.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/sqrt_tab_t.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lgamma.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lgamma.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fma.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fma.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_hypot.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_hypot.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_bid128.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_bid128.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantize.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantize.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sin.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sin.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sub.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sub.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_compare.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_compare.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int64.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int64.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log10.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log10.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_hyper.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_hyper.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asinh.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asinh.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_sqrt.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_sqrt.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erfc.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erfc.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lrintd.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lrintd.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_pow.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_pow.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_pow.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_pow.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int16.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -w -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Dia32=1 -Dgcc=1 -DUNCHANGED_BINARY_STATUS_FLAGS=0 -DUSE_NATIVE_QUAD_TYPE=0 -DIA32=1 -DLINUX=1 -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DUSE_COMPILER_F80_TYPE=0 -Dlinux=1 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0 -DUSE_COMPILER_F128_TYPE=0 -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int16.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/servslkf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/servslkf.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/get_shard_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/get_shard_version_command.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_storage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_storage.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_command.cpp Using tempfile /tmp/tmpkjiPmO.lnk for command line: ar rcsTD build/opt/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_exception.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_four_over_pi.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bessel.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_bid.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_cbrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_erf.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_exp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_int.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_hyper.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_inv_trig.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_lgamma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_log.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_mod.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_ops_64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_pow.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_powi.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_sqrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/dpml_ux_trig.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/float128/sqrt_tab_t.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_2_str_tables.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acos.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_acosh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_add.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asin.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_asinh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atan2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_atanh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cbrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_compare.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cos.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_cosh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_div.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erf.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_erfc.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp10.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_exp2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_expm1.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fdimd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_fmod.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_frexp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_hypot.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_ldexp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lgamma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_llrintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log10.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log1p.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_log2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logb.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_logbd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lrintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_lround.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_minmax.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_modf.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_mul.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nearbyintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_next.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_nexttowardd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_noncomp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_pow.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantexpd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_quantize.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_rem.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_round_integral.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalb.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_scalbl.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sin.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sinh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_sqrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_string.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tan.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tanh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_tgamma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int16.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_int8.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint16.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid128_to_uint8.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acos.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_acosh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_add.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asin.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_asinh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atan2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_atanh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cbrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_compare.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cos.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_cosh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_div.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erf.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_erfc.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp10.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_exp2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_expm1.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fdimd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_fmod.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_frexp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_hypot.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_ldexp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lgamma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_llrintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log10.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log1p.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_log2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logb.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_logbd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lrintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_lround.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_minmax.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_modf.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_mul.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nearbyintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_next.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_nexttowardd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_noncomp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_pow.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantexpd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_quantize.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_rem.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_round_integral.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalb.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_scalbl.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sin.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sinh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sqrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_string.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_sub.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tan.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tanh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_tgamma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid128.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_bid64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int16.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_int8.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint16.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid32_to_uint8.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acos.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_acosh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_add.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asin.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_asinh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atan2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_atanh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cbrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_compare.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cos.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_cosh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_div.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erf.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_erfc.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp10.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_exp2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_expm1.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fdimd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_fmod.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_frexp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_hypot.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_ldexp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lgamma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_llrintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log10.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log1p.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_log2.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logb.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_logbd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lrintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_lround.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_minmax.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_modf.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_mul.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nearbyintd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_next.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_nexttowardd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_noncomp.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_pow.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantexpd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_quantize.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_rem.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_round_integral.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalb.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_scalbl.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sin.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sinh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_sqrt.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_string.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tan.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tanh.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_tgamma.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_bid128.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int16.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_int8.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint16.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid64_to_uint8.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_binarydecimal.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_convert_data.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_data.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_decimal_globals.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_dpd.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feclearexcept.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fegetexceptflag.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_feraiseexcept.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fesetexceptflag.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_fetestexcept.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_flag_operations.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_from_int.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/bid_round.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod128.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/strtod64.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod128.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod32.o build/opt/third_party/IntelRDFPMathLib20U1/LIBRARY/src/wcstod64.o ar @/tmp/tmpkjiPmO.lnk Skipping ranlib for thin archive build/opt/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/compactdecimalformat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/compactdecimalformat.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/extent_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/extent_manager.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_command.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_shard_version_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_shard_version_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_command.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_shard_version_command.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/free_mon/free_mon_storage.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_command.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/free_mon/free_mon_storage.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_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:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_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::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_shard_version_command.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/extent.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/extent.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_command.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/free_mon/free_mon_storage.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/free_mon/free_mon_storage.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/repl_set_command.h:35, from src/mongo/db/repl/repl_set_command.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/mmap_v1/libextent.a build/opt/mongo/db/storage/mmap_v1/extent.o build/opt/mongo/db/storage/mmap_v1/extent_manager.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libextent.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/network_interface_thread_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/executor/network_interface_thread_pool.cpp ar rcsTD build/opt/mongo/db/repl/librepl_set_status_commands.a build/opt/mongo/db/repl/repl_set_command.o build/opt/mongo/db/repl/repl_set_get_status_cmd.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_set_status_commands.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_recovery_unit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_recovery_unit.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_shard_version_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/free_mon/free_mon_storage.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/executor/libnetwork_interface_thread_pool.a build/opt/mongo/executor/network_interface_thread_pool.o Skipping ranlib for thin archive build/opt/mongo/executor/libnetwork_interface_thread_pool.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/op_msg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/op_msg.cpp ar rcsTD build/opt/mongo/db/exec/libscoped_timer.a build/opt/mongo/db/exec/scoped_timer.o Skipping ranlib for thin archive build/opt/mongo/db/exec/libscoped_timer.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_html_summary.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_html_summary.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/last_vote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/last_vote.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/member_config.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/member_config.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/last_vote.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/last_vote.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/update_position_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/update_position_args.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/last_vote.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/last_vote.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/member_config.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/member_config.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/member_config.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/member_config.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/is_master_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/is_master_response.cpp src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/update_position_args.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/update_position_args.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/update_position_args.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/update_position_args.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/last_vote.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_heartbeat_args_v1.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/member_config.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/update_position_args.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_request_votes_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_request_votes_args.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/update_position_args.h:33, from src/mongo/db/repl/update_position_args.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::repl::UpdatePositionArgs::UpdateInfo}; _Tp = mongo::repl::UpdatePositionArgs::UpdateInfo; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::Status mongo::repl::UpdatePositionArgs::initialize(const mongo::BSONObj&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_heartbeat_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_heartbeat_args.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_heartbeat_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_heartbeat_response.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_request_votes_args.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_request_votes_args.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_request_votes_args.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_request_votes_args.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args_v1.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_request_votes_args.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_tag.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_tag.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_config.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_config.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_heartbeat_args.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/killcursors_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/killcursors_common.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/uarrsort.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uarrsort.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/component_message_log_domain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/component_message_log_domain.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/db/commands/killcursors_common.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_config.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_config.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/db/commands/killcursors_common.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_config.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/index_bounds.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/index_bounds.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/db/commands/killcursors_common.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_config.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/expression_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/expression_index.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/db/commands/killcursors_common.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/expression_index.h:39, from src/mongo/db/query/expression_index.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/expression_index.h:39, from src/mongo/db/query/expression_index.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/expression_index.h:39, from src/mongo/db/query/expression_index.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/expression_index.h:39, from src/mongo/db/query/expression_index.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/db/commands/killcursors_common.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/repl/repl_set_config.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/commands.h:35, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/db/commands/killcursors_common.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const long long int&}; _Tp = long long int; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/commands.h:35, from src/mongo/db/commands/killcursors_common.h:31, from src/mongo/db/commands/killcursors_common.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual bool mongo::KillCursorsCmdBase::run(mongo::OperationContext*, const string&, const mongo::BSONObj&, mongo::BSONObjBuilder&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/expression_index_knobs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/expression_index_knobs.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/util/bson_extract.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/util/bson_extract.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/index_bounds_builder.h:35, from src/mongo/db/query/expression_index.h:39, from src/mongo/db/query/expression_index.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/repl_set_config.h:34, from src/mongo/db/repl/repl_set_config.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::BSONObj&, mongo::repl::ReplSetTagConfig*}; _Tp = mongo::repl::MemberConfig; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/driverHelpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/driverHelpers.cpp /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::Status mongo::repl::ReplSetConfig::_initialize(const mongo::BSONObj&, bool, mongo::OID)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/btree/btree_ondisk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/btree/btree_ondisk.cpp ar rcsTD build/opt/mongo/db/query/libindex_bounds.a build/opt/mongo/db/query/expression_index.o build/opt/mongo/db/query/expression_index_knobs.o build/opt/mongo/db/query/index_bounds.o build/opt/mongo/db/query/index_bounds_builder.o build/opt/mongo/db/query/interval.o Skipping ranlib for thin archive build/opt/mongo/db/query/libindex_bounds.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_lookup.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_lookup.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/driverHelpers.cpp:47: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/repl/libreplica_set_messages.a build/opt/mongo/db/repl/is_master_response.o build/opt/mongo/db/repl/member_config.o build/opt/mongo/db/repl/repl_set_config.o build/opt/mongo/db/repl/repl_set_heartbeat_args.o build/opt/mongo/db/repl/repl_set_heartbeat_args_v1.o build/opt/mongo/db/repl/repl_set_heartbeat_response.o build/opt/mongo/db/repl/repl_set_html_summary.o build/opt/mongo/db/repl/repl_set_request_votes_args.o build/opt/mongo/db/repl/repl_set_tag.o build/opt/mongo/db/repl/update_position_args.o build/opt/mongo/db/repl/last_vote.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplica_set_messages.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_enable_sharding_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_enable_sharding_command.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/driverHelpers.cpp:47: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/driverHelpers.cpp:47: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/driverHelpers.cpp:47: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/service_entry_point_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/service_entry_point_mongod.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/service_entry_point_mongod.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/service_entry_point_mongod.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/service_entry_point_mongod.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/driverHelpers.cpp:47: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/service_entry_point_mongod.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/dist_lock_catalog_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/dist_lock_catalog_impl.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_enable_sharding_command.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/service_entry_point_mongod.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/server_write_concern_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/server_write_concern_metrics.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/server_read_concern_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/server_read_concern_metrics.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {std::__cxx11::basic_string, std::allocator >, boost::intrusive_ptr, long long int}; _Tp = mongo::DocumentSourceLookUp::LetVariable; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::Document}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/base/deinitializer_context.h:36, from src/mongo/base/init.h:46, from src/mongo/db/pipeline/document_source.h:42, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator) [with _Key = long long int; _Val = long long int; _KeyOfValue = std::_Identity; _Compare = std::less; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2518:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 2518 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2518:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual mongo::DocumentSource::GetNextResult mongo::DocumentSourceLookUp::getNext()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_write_concern_metrics.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_write_concern_metrics.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_read_concern_metrics.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/document_source_lookup.cpp: In constructor 'mongo::DocumentSourceLookUp::DocumentSourceLookUp(mongo::NamespaceString, std::string, std::vector >, mongo::BSONObj, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_lookup.cpp:128:37: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 128 | Expression::parseOperand(pExpCtx, varElem, pExpCtx->variablesParseState), | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_read_concern_metrics.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/pipeline/document_source_lookup.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceLookUp::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_lookup.cpp:738:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 738 | intrusive_ptr DocumentSourceLookUp::createFromBson( | ^~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_lookup.cpp:759:77: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 759 | auto result = AggregationRequest::parsePipelineFromBSON(argument); | ^ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_write_concern_metrics.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_read_concern_metrics.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_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 In file included from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: src/mongo/db/pipeline/document_source_lookup.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_lookup(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_lookup.cpp:177:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 177 | REGISTER_DOCUMENT_SOURCE(lookup, | ^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_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:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_write_concern_metrics.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_read_concern_metrics.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj_comparator_interface.h:33, from src/mongo/bson/simple_bsonobj_comparator.h:36, from src/mongo/db/pipeline/document_source.h:43, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: src/mongo/db/pipeline/document_source_lookup.cpp: In static member function 'static std::unique_ptr mongo::DocumentSourceLookUp::LiteParsed::parse(const mongo::AggregationRequest&, const mongo::BSONElement&)': src/mongo/db/pipeline/document_source_lookup.cpp:163:82: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 163 | auto pipeline = uassertStatusOK(AggregationRequest::parsePipelineFromBSON(pipelineElem)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/base/deinitializer_context.h:36, from src/mongo/base/init.h:46, from src/mongo/db/pipeline/document_source.h:42, from src/mongo/db/pipeline/document_source_lookup.h:35, from src/mongo/db/pipeline/document_source_lookup.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual mongo::DocumentSource::GetDepsReturn mongo::DocumentSourceLookUp::getDependencies(mongo::DepsTracker*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1248:2: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1248 | _M_erase_aux(__first, __last); | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2536:7: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 2536 | _M_erase_aux(__p.first, __p.second); | ^~~~~~~~~~~~ ar rcsTD build/opt/mongo/s/catalog/libdist_lock_catalog_impl.a build/opt/mongo/s/catalog/dist_lock_catalog_impl.o Skipping ranlib for thin archive build/opt/mongo/s/catalog/libdist_lock_catalog_impl.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/read_concern_stats_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/stats/read_concern_stats_gen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_protocol_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_read_concern_metrics.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/server_write_concern_metrics.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/sessions_collection_rs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/sessions_collection_rs.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/read_concern_stats_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/read_concern_stats_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/read_concern_stats_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/read_concern_stats_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/usprep.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/usprep.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/curop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/curop.cpp src/mongo/db/sessions_collection_rs.cpp: In instantiation of 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::sendToPrimary(mongo::OperationContext*, Callback) [with Callback = mongo::SessionsCollectionRS::setupSessionsCollection(mongo::OperationContext*)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]': src/mongo/db/sessions_collection_rs.cpp:147:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::setupSessionsCollection(mongo::OperationContext*)::; RemoteCallback = mongo::SessionsCollectionRS::setupSessionsCollection(mongo::OperationContext*)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]' src/mongo/db/sessions_collection_rs.cpp:179:76: required from here src/mongo/db/sessions_collection_rs.cpp:131:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] 131 | return std::move(val); | ^ src/mongo/db/sessions_collection_rs.cpp:131:25: note: remove 'std::move' call src/mongo/db/sessions_collection_rs.cpp: In instantiation of 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::sendToPrimary(mongo::OperationContext*, Callback) [with Callback = mongo::SessionsCollectionRS::refreshSessions(mongo::OperationContext*, const LogicalSessionRecordSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]': src/mongo/db/sessions_collection_rs.cpp:147:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::refreshSessions(mongo::OperationContext*, const LogicalSessionRecordSet&)::; RemoteCallback = mongo::SessionsCollectionRS::refreshSessions(mongo::OperationContext*, const LogicalSessionRecordSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]' src/mongo/db/sessions_collection_rs.cpp:225:22: required from here src/mongo/db/sessions_collection_rs.cpp:131:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:131:25: note: remove 'std::move' call src/mongo/db/sessions_collection_rs.cpp: In instantiation of 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::sendToPrimary(mongo::OperationContext*, Callback) [with Callback = mongo::SessionsCollectionRS::removeRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]': src/mongo/db/sessions_collection_rs.cpp:147:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::removeRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; RemoteCallback = mongo::SessionsCollectionRS::removeRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]' src/mongo/db/sessions_collection_rs.cpp:242:22: required from here src/mongo/db/sessions_collection_rs.cpp:131:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:131:25: note: remove 'std::move' call src/mongo/db/sessions_collection_rs.cpp: In instantiation of 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::sendToPrimary(mongo::OperationContext*, Callback) [with Callback = mongo::SessionsCollectionRS::findRemovedSessions(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::StatusWith >]': src/mongo/db/sessions_collection_rs.cpp:147:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::findRemovedSessions(mongo::OperationContext*, const LogicalSessionIdSet&)::; RemoteCallback = mongo::SessionsCollectionRS::findRemovedSessions(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::StatusWith >]' src/mongo/db/sessions_collection_rs.cpp:259:22: required from here src/mongo/db/sessions_collection_rs.cpp:131:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:131:25: note: remove 'std::move' call src/mongo/db/sessions_collection_rs.cpp: In instantiation of 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::sendToPrimary(mongo::OperationContext*, Callback) [with Callback = mongo::SessionsCollectionRS::removeTransactionRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]': src/mongo/db/sessions_collection_rs.cpp:147:25: required from 'decltype (declval()(static_cast(nullptr))) mongo::{anonymous}::dispatch(const mongo::NamespaceString&, mongo::OperationContext*, LocalCallback, RemoteCallback) [with LocalCallback = mongo::SessionsCollectionRS::removeTransactionRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; RemoteCallback = mongo::SessionsCollectionRS::removeTransactionRecords(mongo::OperationContext*, const LogicalSessionIdSet&)::; decltype (declval()(static_cast(nullptr))) = mongo::Status]' src/mongo/db/sessions_collection_rs.cpp:276:10: required from here src/mongo/db/sessions_collection_rs.cpp:131:25: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move] src/mongo/db/sessions_collection_rs.cpp:131:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/stats/read_concern_stats_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_protocol_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libsessions_collection_rs.a build/opt/mongo/db/sessions_collection_rs.o Skipping ranlib for thin archive build/opt/mongo/db/libsessions_collection_rs.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_database_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp ar rcsTD build/opt/mongo/db/stats/libserver_read_concern_write_concern_metrics.a build/opt/mongo/db/stats/server_read_concern_metrics.o build/opt/mongo/db/stats/server_write_concern_metrics.o build/opt/mongo/db/stats/read_concern_stats_gen.o Skipping ranlib for thin archive build/opt/mongo/db/stats/libserver_read_concern_write_concern_metrics.a In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/password_digest.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/password_digest.cpp src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucasemap_titlecase_brkiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucasemap_titlecase_brkiter.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/reldatefmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/reldatefmt.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/shutdown_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/shutdown_d.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/database_sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/database_sharding_state.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/shutdown.h:35, from src/mongo/db/commands/shutdown_d.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/shutdown.h:35, from src/mongo/db/commands/shutdown_d.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/shutdown.h:35, from src/mongo/db/commands/shutdown_d.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/shutdown.h:35, from src/mongo/db/commands/shutdown_d.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/database_sharding_state.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/database_sharding_state.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/database_sharding_state.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/database_sharding_state.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/string.h:495, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/cstring:42, from src/mongo/platform/atomic_word.h:34, from src/mongo/base/counter.h:35, from src/mongo/db/commands.h:37, from src/mongo/db/curop.h:37, from src/mongo/db/curop.cpp:37: In function 'char* strncpy(char*, const char*, size_t)', inlined from 'mongo::ThreadSafeString& mongo::ThreadSafeString::operator=(mongo::StringData)' at src/mongo/util/thread_safe_string.h:66:16, inlined from 'mongo::ProgressMeter::ProgressMeter()' at src/mongo/util/progress_meter.h:56:17, inlined from 'mongo::CurOp::CurOp(mongo::OperationContext*, mongo::CurOp::CurOpStack*)' at src/mongo/db/curop.cpp:283:72: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, unsigned int)' output truncated copying between 0 and 8 bytes from a string of length 8 [-Wstringop-truncation] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/shutdown.h:35, from src/mongo/db/commands/shutdown_d.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/s/config/sharding_catalog_manager_database_operations.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_set_config_checks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_set_config_checks.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/locdspnm.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locdspnm.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/datefmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/datefmt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uloc_keytype.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uloc_keytype.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/status.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/database_sharding_state.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/touch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/touch.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/connection_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/connection_status.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_config_optime_gossip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_config_optime_gossip.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/grid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/grid.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/touch.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/touch.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/touch.cpp:44: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/touch.cpp:44: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/grid.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/grid.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/grid.cpp:44: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/grid.cpp:44: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/balancer_configuration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/balancer_configuration.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/connection_status.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog_cache.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/touch.cpp:44: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/grid.cpp:44: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/shard_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/client/shard_registry.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/shard_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/client/shard_factory.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/record_store_v1_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/move_primary_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/move_primary_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/repair_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/repair_database.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_command.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_command.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_command.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/libgrid.a build/opt/mongo/s/balancer_configuration.o build/opt/mongo/s/catalog_cache.o build/opt/mongo/s/client/shard_factory.o build/opt/mongo/s/client/shard_registry.o build/opt/mongo/s/grid.o Skipping ranlib for thin archive build/opt/mongo/s/libgrid.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/roll_back_local_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/roll_back_local_operations.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/repair_database.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/repair_database.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/repair_database.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/repair_database.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_base.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_primary_command.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libroll_back_local_operations.a build/opt/mongo/db/repl/roll_back_local_operations.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libroll_back_local_operations.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_sort_by_count.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sort_by_count.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/elect_cmd_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/elect_cmd_runner.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort_by_count.h:33, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort_by_count.h:33, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort_by_count.h:33, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort_by_count.h:33, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uitercollationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uitercollationiterator.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/repair_database.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_fetcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_fetcher.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/elect_cmd_runner.h:33, from src/mongo/db/repl/elect_cmd_runner.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::executor::RemoteCommandRequest}; _Tp = mongo::executor::RemoteCommandRequest; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual std::vector mongo::repl::ElectCmdRunner::Algorithm::getRequests() const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/record_store_v1_simple.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sort_by_count.h:33, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/oplog_fetcher.h:38, from src/mongo/db/repl/oplog_fetcher.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/oplog_fetcher.h:38, from src/mongo/db/repl/oplog_fetcher.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/oplog_fetcher.h:38, from src/mongo/db/repl/oplog_fetcher.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/document_source.h:35, from src/mongo/db/pipeline/document_source_sort_by_count.h:33, from src/mongo/db/pipeline/document_source_sort_by_count.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = std::__cxx11::list > (*)(mongo::BSONElement, const boost::intrusive_ptr&); _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/oplog_fetcher.h:38, from src/mongo/db/repl/oplog_fetcher.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/record_store_v1_capped.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_capped.cpp src/mongo/db/pipeline/document_source_sort_by_count.cpp: In static member function 'static std::__cxx11::list > mongo::DocumentSourceSortByCount::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_sort_by_count.cpp:50:37: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 50 | list> DocumentSourceSortByCount::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_sort_by_count.cpp:78:92: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 78 | auto groupSource = DocumentSourceGroup::createFromBson(groupObj.firstElement(), pExpCtx); | ^ src/mongo/db/pipeline/document_source_sort_by_count.cpp:79:89: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 79 | auto sortSource = DocumentSourceSort::createFromBson(sortObj.firstElement(), pExpCtx); | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/oplog_fetcher.h:38, from src/mongo/db/repl/oplog_fetcher.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp ar rcsTD build/opt/mongo/db/repl/liboplog_fetcher.a build/opt/mongo/db/repl/oplog_fetcher.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_fetcher.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/touch_pages.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/touch_pages.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_planner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/query_planner.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/planner_analysis.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/planner_analysis.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/query_planner.h:34, from src/mongo/db/query/query_planner.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/query_planner.h:34, from src/mongo/db/query/query_planner.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/planner_analysis.h:33, from src/mongo/db/query/planner_analysis.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/planner_analysis.h:33, from src/mongo/db/query/planner_analysis.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/query_planner.h:34, from src/mongo/db/query/query_planner.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_analysis.h:33, from src/mongo/db/query/planner_analysis.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/query_planner.h:34, from src/mongo/db/query/query_planner.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/planner_analysis.h:33, from src/mongo/db/query/planner_analysis.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_planner_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/query_planner_common.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_planner_common.h:34, from src/mongo/db/query/query_planner_common.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_planner_common.h:34, from src/mongo/db/query/query_planner_common.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_planner_common.h:35, from src/mongo/db/query/query_planner_common.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_planner_common.h:35, from src/mongo/db/query/query_planner_common.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/query_planner.h:34, from src/mongo/db/query/query_planner.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/planner_analysis.h:33, from src/mongo/db/query/planner_analysis.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/mmap_v1/librecord_store_v1.a build/opt/mongo/db/storage/mmap_v1/record_store_v1_base.o build/opt/mongo/db/storage/mmap_v1/record_store_v1_capped.o build/opt/mongo/db/storage/mmap_v1/record_store_v1_capped_iterator.o build/opt/mongo/db/storage/mmap_v1/record_store_v1_repair_iterator.o build/opt/mongo/db/storage/mmap_v1/record_store_v1_simple.o build/opt/mongo/db/storage/mmap_v1/record_store_v1_simple_iterator.o build/opt/mongo/db/storage/mmap_v1/touch_pages.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/librecord_store_v1.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/parsed_projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/parsed_projection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/parsed_projection.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_planner_common.h:35, from src/mongo/db/query/query_planner_common.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/parsed_projection.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/parsed_projection.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/parsed_projection.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/index_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/index_entry.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_solution.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/query_solution.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/index_entry.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/index_entry.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/canonical_query.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/canonical_query.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/query_solution.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/query_solution.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/planner_ixselect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/planner_ixselect.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_solution.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_solution.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/parsed_projection.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/canonical_query.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/canonical_query.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/canonical_query.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/planner_ixselect.h:33, from src/mongo/db/query/planner_ixselect.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/planner_ixselect.h:33, from src/mongo/db/query/planner_ixselect.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/canonical_query.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/planner_ixselect.h:33, from src/mongo/db/query/planner_ixselect.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/planner_ixselect.h:33, from src/mongo/db/query/planner_ixselect.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/index_tag.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/index_tag.cpp In file included from src/mongo/db/query/canonical_query.cpp:38: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call src/mongo/db/query/canonical_query.cpp: In static member function 'static mongo::StatusWith > mongo::CanonicalQuery::canonicalize(mongo::OperationContext*, std::unique_ptr, const boost::intrusive_ptr&, const mongo::ExtensionsCallback&, mongo::MatchExpressionParser::AllowedFeatureSet)': src/mongo/db/query/canonical_query.cpp:179:21: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(cq); | ~~~~~~~~~^~~~ src/mongo/db/query/canonical_query.cpp:179:21: note: remove 'std::move' call src/mongo/db/query/canonical_query.cpp: In static member function 'static mongo::StatusWith > mongo::CanonicalQuery::canonicalize(mongo::OperationContext*, const mongo::CanonicalQuery&, mongo::MatchExpression*)': src/mongo/db/query/canonical_query.cpp:214:21: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(cq); | ~~~~~~~~~^~~~ src/mongo/db/query/canonical_query.cpp:214:21: note: remove 'std::move' call In file included from src/mongo/db/query/planner_ixselect.cpp:42: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/query_solution.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/index_tag.h:37, from src/mongo/db/query/index_tag.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/index_tag.h:37, from src/mongo/db/query/index_tag.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/query/index_tag.cpp:33: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call In file included from src/mongo/db/query/index_tag.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/canonical_query.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/planner_ixselect.h:33, from src/mongo/db/query/planner_ixselect.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/query_settings.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/plan_enumerator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/plan_enumerator.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/query_settings.h:39, from src/mongo/db/query/query_settings.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/query_settings.h:39, from src/mongo/db/query/query_settings.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/query_settings.h:39, from src/mongo/db/query/query_settings.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/query_settings.h:39, from src/mongo/db/query/query_settings.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/op_observer_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/op_observer_impl.cpp src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt_rule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbt_rule.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/dbcheck_idl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/dbcheck_idl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_enumerator.h:37, from src/mongo/db/query/plan_enumerator.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_enumerator.h:37, from src/mongo/db/query/plan_enumerator.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_enumerator.h:37, from src/mongo/db/query/plan_enumerator.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_enumerator.h:37, from src/mongo/db/query/plan_enumerator.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/query_settings.h:39, from src/mongo/db/query/query_settings.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/find_and_modify_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/find_and_modify_request.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_cache_stats_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/logical_session_cache_stats_gen.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_enumerator.h:37, from src/mongo/db/query/plan_enumerator.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/expression_params.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/expression_params.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_stats_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_stats_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_stats_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_stats_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bson_comparator_interface_base.h:37, from src/mongo/bson/bsonobj_comparator_interface.h:33, from src/mongo/bson/simple_bsonobj_comparator.h:36, from src/mongo/db/op_observer.h:36, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::repl::OpTime&}; _Tp = mongo::repl::OpTime; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bson_comparator_interface_base.h:37, from src/mongo/bson/bsonobj_comparator_interface.h:33, from src/mongo/bson/simple_bsonobj_comparator.h:36, from src/mongo/db/op_observer.h:36, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In function 'mongo::repl::OpTime mongo::{anonymous}::logOperation(mongo::OperationContext*, const char*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, const mongo::BSONObj&, const mongo::BSONObj*, bool, mongo::Date_t, const mongo::OperationSessionInfo&, mongo::StmtId, const mongo::repl::OplogLink&, const mongo::OplogSlot&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/ops/single_write_result_gen.h --output build/opt/mongo/db/ops/single_write_result_gen.cpp src/mongo/db/ops/single_write_result.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/write_ops_exec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/write_ops_exec.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bson_comparator_interface_base.h:37, from src/mongo/bson/bsonobj_comparator_interface.h:33, from src/mongo/bson/simple_bsonobj_comparator.h:36, from src/mongo/db/op_observer.h:36, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::repl::OpTime; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_cache_stats_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libperiodic_runner_job_abort_expired_transactions.a build/opt/mongo/db/periodic_runner_job_abort_expired_transactions.o Skipping ranlib for thin archive build/opt/mongo/db/libperiodic_runner_job_abort_expired_transactions.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/pipeline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/pipeline.cpp ar rcsTD build/opt/mongo/db/query/libquery_planner.a build/opt/mongo/db/query/canonical_query.o build/opt/mongo/db/query/query_settings.o build/opt/mongo/db/query/index_entry.o build/opt/mongo/db/query/index_tag.o build/opt/mongo/db/query/parsed_projection.o build/opt/mongo/db/query/plan_cache.o build/opt/mongo/db/query/plan_cache_indexability.o build/opt/mongo/db/query/plan_enumerator.o build/opt/mongo/db/query/planner_access.o build/opt/mongo/db/query/planner_analysis.o build/opt/mongo/db/query/planner_ixselect.o build/opt/mongo/db/query/query_planner.o build/opt/mongo/db/query/query_planner_common.o build/opt/mongo/db/query/query_solution.o Skipping ranlib for thin archive build/opt/mongo/db/query/libquery_planner.a src/mongo/db/op_observer_impl.cpp: In member function 'virtual void mongo::OpObserverImpl::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/op_observer_impl.cpp:365:6: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 365 | void OpObserverImpl::onInserts(OperationContext* opCtx, | ^~~~~~~~~~~~~~ src/mongo/db/op_observer_impl.cpp:365:6: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 src/mongo/db/op_observer_impl.cpp:395:31: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 395 | repl::logInsertOps(opCtx, nss, uuid, session, first, last, fromMigrate, lastWriteDate); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/op_observer_impl.cpp:395:31: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bson_comparator_interface_base.h:37, from src/mongo/bson/bsonobj_comparator_interface.h:33, from src/mongo/bson/simple_bsonobj_comparator.h:36, from src/mongo/db/op_observer.h:36, from src/mongo/db/op_observer_impl.h:33, from src/mongo/db/op_observer_impl.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/clock_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/clock_source.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/write_ops_exec.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/legacy_request_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/legacy_request_builder.cpp src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/write_ops_exec.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/legacy_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/legacy_request.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/pipeline.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/pipeline.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/write_ops_exec.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/write_ops_exec.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/pipeline.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/pipeline.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/pipeline.cpp: In static member function 'static mongo::StatusWith > mongo::Pipeline::createTopLevelOrFacetPipeline(mongo::Pipeline::SourceContainer, const boost::intrusive_ptr&, bool)': src/mongo/db/pipeline/pipeline.cpp:131:21: warning: redundant move in return statement [-Wredundant-move] 131 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/pipeline.cpp:131:21: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_shard_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp ar rcsTD build/opt/mongo/rpc/liblegacy_request.a build/opt/mongo/rpc/legacy_request.o build/opt/mongo/rpc/legacy_request_builder.o Skipping ranlib for thin archive build/opt/mongo/rpc/liblegacy_request.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_text.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_text.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/pipeline.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:48: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:48: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:48: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:48: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ops/write_ops_exec.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text.h:36, from src/mongo/db/matcher/expression_text.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text.h:36, from src/mongo/db/matcher/expression_text.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text.h:36, from src/mongo/db/matcher/expression_text.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/replset_dist_lock_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/replset_dist_lock_manager.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/matcher/expression_text.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/ops/write_ops_exec.cpp: In function 'void mongo::{anonymous}::insertDocuments(mongo::OperationContext*, mongo::Collection*, std::vector::iterator, std::vector::iterator, bool)': src/mongo/db/ops/write_ops_exec.cpp:330:6: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 330 | void insertDocuments(OperationContext* opCtx, | ^~~~~~~~~~~~~~~ src/mongo/db/ops/write_ops_exec.cpp:330:6: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from src/mongo/db/ops/write_ops_exec.cpp:40: src/mongo/db/catalog/collection.h:481:99: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 481 | return this->_impl().insertDocuments(opCtx, begin, end, opDebug, enforceQuota, fromMigrate); | ^ src/mongo/db/catalog/collection.h:481:99: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/auth/privilege.h:33, from src/mongo/db/audit.h:39, from src/mongo/db/ops/write_ops_exec.cpp:38: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const int&, mongo::BSONObj&}; _Tp = mongo::InsertStatement; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_text.cpp: In member function 'virtual std::unique_ptr mongo::TextMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_text.cpp:114:21: warning: redundant move in return statement [-Wredundant-move] 114 | return std::move(expr); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_text.cpp:114:21: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'mongo::WriteResult mongo::performInserts(mongo::OperationContext*, const mongo::write_ops::Insert&, bool)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ src/mongo/db/ops/write_ops_exec.cpp:412:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 412 | insertDocuments( | ~~~~~~~~~~~~~~~^ 413 | opCtx, collection->getCollection(), batch.begin(), batch.end(), fromMigrate); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/ops/write_ops_exec.cpp:450:36: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 450 | insertDocuments(opCtx, collection->getCollection(), it, it + 1, fromMigrate); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/ops/write_ops_exec.cpp:450:36: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 450 | insertDocuments(opCtx, collection->getCollection(), it, it + 1, fromMigrate); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp:48: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_list_sessions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_list_sessions.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/matcher/expression_text.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/document_source_list_sessions.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/document_source_list_sessions.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/s/catalog/libreplset_dist_lock_manager.a build/opt/mongo/s/catalog/replset_dist_lock_manager.o Skipping ranlib for thin archive build/opt/mongo/s/catalog/libreplset_dist_lock_manager.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/file_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/file_writer.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/document_source_list_sessions.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/document_source_list_sessions.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/matcher/libexpressions_mongod_only.a build/opt/mongo/db/matcher/extensions_callback_real.o build/opt/mongo/db/matcher/expression_text.o build/opt/mongo/db/matcher/expression_where.o Skipping ranlib for thin archive build/opt/mongo/db/matcher/libexpressions_mongod_only.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnv_bld.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_bld.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/databases_cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/databases_cloner.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/client/shard.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/udateintervalformat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/udateintervalformat.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_check_resume_token.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_check_resume_token.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/document_source_list_sessions.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/databases_cloner.h:41, from src/mongo/db/repl/databases_cloner.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/databases_cloner.h:41, from src/mongo/db/repl/databases_cloner.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/databases_cloner.h:41, from src/mongo/db/repl/databases_cloner.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/databases_cloner.h:41, from src/mongo/db/repl/databases_cloner.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/pipeline/document_source_list_sessions.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceListSessions::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_list_sessions.cpp:49:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 49 | boost::intrusive_ptr DocumentSourceListSessions::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_list_local_sessions.h:39, from src/mongo/db/pipeline/document_source_list_sessions.h:34, from src/mongo/db/pipeline/document_source_list_sessions.cpp:37: src/mongo/db/pipeline/document_source_list_sessions.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_listSessions(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_list_sessions.cpp:45:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 45 | REGISTER_DOCUMENT_SOURCE(listSessions, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/hasher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/hasher.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/usetiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/usetiter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/service_liaison_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/service_liaison_mongod.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_collection_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/databases_cloner.h:41, from src/mongo/db/repl/databases_cloner.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/service_liaison_mongod.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/service_liaison_mongod.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/pipeline/document_source_check_resume_token.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/service_liaison_mongod.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/service_liaison_mongod.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/databases_cloner.h:35, from src/mongo/db/repl/databases_cloner.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::repl::DatabaseCloner::Stats}; _Tp = mongo::repl::DatabaseCloner::Stats; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/keys_collection_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/keys_collection_manager.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:48: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:48: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:48: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:48: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::repl::DatabasesCloner::Stats mongo::repl::DatabasesCloner::getStats() const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/service_liaison_mongod.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libdatabases_cloner.a build/opt/mongo/db/repl/databases_cloner.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libdatabases_cloner.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_spanish.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_spanish.c ar rcsTD build/opt/mongo/db/libservice_liaison_mongod.a build/opt/mongo/db/service_liaison_mongod.o Skipping ranlib for thin archive build/opt/mongo/db/libservice_liaison_mongod.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/explain_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/explain_cmd.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/write_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/write_ops/write_op.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/legacy_reply_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/legacy_reply_builder.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/commands/explain_cmd.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:48: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/commands/explain_cmd.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/commands/explain_cmd.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/commands/explain_cmd.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/shard_connection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/client/shard_connection.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/security_key.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/security_key.cpp In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj.h:46, from src/mongo/db/concurrency/lock_manager.h:38, from src/mongo/db/concurrency/locker.h:36, from src/mongo/db/concurrency/d_concurrency.h:35, from src/mongo/db/s/config/sharding_catalog_manager.h:35, from src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:35: src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp: In function 'boost::optional mongo::{anonymous}::checkCollectionOptions(mongo::OperationContext*, mongo::Shard*, const mongo::NamespaceString&, mongo::CollectionOptions)': src/mongo/db/s/config/sharding_catalog_manager_collection_operations.cpp:128:39: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 128 | return uassertStatusOK(UUID::parse(collectionInfo["uuid"])); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/commands/explain_cmd.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/commands/liblist_databases_command.a build/opt/mongo/db/commands/list_databases_gen.o Skipping ranlib for thin archive build/opt/mongo/db/commands/liblist_databases_command.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uvector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uvector.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/views/view.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/views/view.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_interface_remote.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_interface_remote.cpp ar rcsTD build/opt/mongo/db/auth/libsecurity_key.a build/opt/mongo/db/auth/security_key.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libsecurity_key.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/utrie.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utrie.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/decfmtst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/decfmtst.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/pullall_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/pullall_node.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ulist.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ulist.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/datetime/date_time_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/datetime/date_time_support.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/array_culling_node.h:34, from src/mongo/db/update/pullall_node.h:33, from src/mongo/db/update/pullall_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/array_culling_node.h:34, from src/mongo/db/update/pullall_node.h:33, from src/mongo/db/update/pullall_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/index/libindex_descriptor.a build/opt/mongo/db/index/index_descriptor.o Skipping ranlib for thin archive build/opt/mongo/db/index/libindex_descriptor.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/sharding_connection_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/client/sharding_connection_hook.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/clone_catalog_data_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/clone_catalog_data_command.cpp src/mongo/db/update/pullall_node.cpp: In member function 'virtual mongo::Status mongo::PullAllNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/pullall_node.cpp:66:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 66 | Status PullAllNode::init(BSONElement modExpr, | ^~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/cidr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/cidr.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/console.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/console.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_catalog_data_command.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_catalog_data_command.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_catalog_data_command.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/btree/btree_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/btree/btree_interface.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_catalog_data_command.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_catalog_data_command.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/btree/btree_logic.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/btree/btree_logic.cpp src/mongo/util/net/cidr.cpp: In static member function 'static mongo::StatusWith mongo::CIDR::parse(mongo::BSONElement)': src/mongo/util/net/cidr.cpp:92:18: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 92 | StatusWith CIDR::parse(BSONElement from) noexcept { | ^~~~ ar rcsTD build/opt/mongo/db/fts/libftsmongod.a build/opt/mongo/db/fts/ftsmongod.o Skipping ranlib for thin archive build/opt/mongo/db/fts/libftsmongod.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/set_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/set_node.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/set_node.h:33, from src/mongo/db/update/set_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/set_node.h:33, from src/mongo/db/update/set_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/update/path_support.h:41, from src/mongo/db/update/set_node.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/clone_catalog_data_command.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/collector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/collector.cpp src/mongo/db/update/set_node.cpp: In member function 'virtual mongo::Status mongo::SetNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/set_node.cpp:39:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 39 | Status SetNode::init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) { | ^~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/stagedebug_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/stagedebug_cmd.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/wiredtiger/wiredtiger_extensions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/wiredtiger/wiredtiger_extensions.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/exec/stagedebug_cmd.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/exec/stagedebug_cmd.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/util/uuid.h:40, from src/mongo/db/namespace_string.h:43, from src/mongo/db/client.h:43, from src/mongo/db/storage/mmap_v1/btree/btree_logic.cpp:38: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {long long int}; _Tp = long long int; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {long long int}; _Tp = long long int; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/exec/stagedebug_cmd.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/wiredtiger/libstorage_wiredtiger_customization_hooks.a build/opt/mongo/db/storage/wiredtiger/wiredtiger_customization_hooks.o build/opt/mongo/db/storage/wiredtiger/wiredtiger_extensions.o Skipping ranlib for thin archive build/opt/mongo/db/storage/wiredtiger/libstorage_wiredtiger_customization_hooks.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_err.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_err.c src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/exec/stagedebug_cmd.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/punycode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/punycode.cpp src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr_titlecase_brkiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unistr_titlecase_brkiter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/factory.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_util.cpp ar rcsTD build/opt/mongo/db/storage/mmap_v1/libbtree.a build/opt/mongo/db/storage/mmap_v1/btree/btree_logic.o build/opt/mongo/db/storage/mmap_v1/btree/btree_interface.o build/opt/mongo/db/storage/mmap_v1/btree/btree_ondisk.o build/opt/mongo/db/storage/mmap_v1/btree/key.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libbtree.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/storage_validation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/storage_validation.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/mongo_uri.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/mongo_uri.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/connection_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/connection_string.cpp ar rcsTD build/opt/mongo/rpc/librpc.a build/opt/mongo/rpc/factory.o Skipping ranlib for thin archive build/opt/mongo/rpc/librpc.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/lock_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/concurrency/lock_state.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/router_stage_mock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/router_stage_mock.cpp src/mongo/db/concurrency/lock_state.cpp: In instantiation of 'boost::optional mongo::LockerImpl::getLockerInfo(boost::optional >) const [with bool IsForMMAPV1 = true]': src/mongo/db/concurrency/lock_state.cpp:1153:16: required from here src/mongo/db/concurrency/lock_state.cpp:685:32: warning: redundant move in return statement [-Wredundant-move] 685 | return std::move(lockerInfo); | ^ src/mongo/db/concurrency/lock_state.cpp:685:32: note: remove 'std::move' call src/mongo/db/concurrency/lock_state.cpp: In instantiation of 'boost::optional mongo::LockerImpl::getLockerInfo(boost::optional >) const [with bool IsForMMAPV1 = false]': src/mongo/db/concurrency/lock_state.cpp:1154:16: required from here src/mongo/db/concurrency/lock_state.cpp:685:32: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/concurrency/lock_state.cpp:685:32: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/router_stage_pipeline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/router_stage_pipeline.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/exec/stagedebug_cmd.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/concurrency/lock_state.h:33, from src/mongo/db/concurrency/lock_state.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::Locker::OneLock&}; _Tp = mongo::Locker::OneLock; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/util/assert_util.h:37, from src/mongo/db/concurrency/fast_map_noalloc.h:36, from src/mongo/db/concurrency/lock_state.h:35, from src/mongo/db/concurrency/lock_state.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Val_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1879:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1879 | __final_insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1879:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:62, from src/mongo/db/concurrency/lock_state.h:33, from src/mongo/db/concurrency/lock_state.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = mongo::Locker::OneLock; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/util/assert_util.h:37, from src/mongo/db/concurrency/fast_map_noalloc.h:36, from src/mongo/db/concurrency/lock_state.h:35, from src/mongo/db/concurrency/lock_state.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/concurrency/lock_state.h:33, from src/mongo/db/concurrency/lock_state.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'bool mongo::LockerImpl::saveLockStateAndUnlock(mongo::Locker::LockSnapshot*) [with bool IsForMMAPV1 = true]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/util/assert_util.h:37, from src/mongo/db/concurrency/fast_map_noalloc.h:36, from src/mongo/db/concurrency/lock_state.h:35, from src/mongo/db/concurrency/lock_state.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/concurrency/lock_state.h:33, from src/mongo/db/concurrency/lock_state.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::LockerImpl::getLockerInfo(mongo::Locker::LockerInfo*, boost::optional >) const [with bool IsForMMAPV1 = false]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/util/assert_util.h:37, from src/mongo/db/concurrency/fast_map_noalloc.h:36, from src/mongo/db/concurrency/lock_state.h:35, from src/mongo/db/concurrency/lock_state.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/concurrency/lock_state.h:33, from src/mongo/db/concurrency/lock_state.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::LockerImpl::getLockerInfo(mongo::Locker::LockerInfo*, boost::optional >) const [with bool IsForMMAPV1 = true]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/util/assert_util.h:37, from src/mongo/db/concurrency/fast_map_noalloc.h:36, from src/mongo/db/concurrency/lock_state.h:35, from src/mongo/db/concurrency/lock_state.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/concurrency/lock_state.h:33, from src/mongo/db/concurrency/lock_state.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'bool mongo::LockerImpl::saveLockStateAndUnlock(mongo::Locker::LockSnapshot*) [with bool IsForMMAPV1 = false]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/util/assert_util.h:37, from src/mongo/db/concurrency/fast_map_noalloc.h:36, from src/mongo/db/concurrency/lock_state.h:35, from src/mongo/db/concurrency/lock_state.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/router_stage_limit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/router_stage_limit.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/router_stage_pipeline.h:35, from src/mongo/s/query/router_stage_pipeline.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/router_stage_pipeline.h:35, from src/mongo/s/query/router_stage_pipeline.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/router_stage_pipeline.h:35, from src/mongo/s/query/router_stage_pipeline.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/router_stage_pipeline.h:35, from src/mongo/s/query/router_stage_pipeline.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/client/libconnection_string.a build/opt/mongo/client/connection_string.o build/opt/mongo/client/mongo_uri.o Skipping ranlib for thin archive build/opt/mongo/client/libconnection_string.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/router_stage_merge.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/router_stage_merge.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/document_source_router_adapter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/document_source_router_adapter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_chunk_cloner_source_legacy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/router_stage_merge.h:34, from src/mongo/s/query/router_stage_merge.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/router_stage_merge.h:34, from src/mongo/s/query/router_stage_merge.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/router_stage_merge.h:34, from src/mongo/s/query/router_stage_merge.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/router_stage_merge.h:34, from src/mongo/s/query/router_stage_merge.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/router_stage_pipeline.h:35, from src/mongo/s/query/router_stage_pipeline.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/document_source_router_adapter.h:35, from src/mongo/s/query/document_source_router_adapter.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/document_source_router_adapter.h:35, from src/mongo/s/query/document_source_router_adapter.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/document_source_router_adapter.h:35, from src/mongo/s/query/document_source_router_adapter.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/document_source_router_adapter.h:35, from src/mongo/s/query/document_source_router_adapter.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucln_cmn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucln_cmn.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/restriction_environment.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/restriction_environment.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/router_stage_merge.h:34, from src/mongo/s/query/router_stage_merge.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/s/query/document_source_router_adapter.h:35, from src/mongo/s/query/document_source_router_adapter.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libauthentication_restriction.a build/opt/mongo/db/auth/restriction_environment.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauthentication_restriction.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/umapfile.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/umapfile.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_list_local_cursors.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_list_local_cursors.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_group.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_group.cpp ar rcsTD build/opt/mongo/s/query/librouter_exec_stage.a build/opt/mongo/s/query/document_source_router_adapter.o build/opt/mongo/s/query/router_stage_limit.o build/opt/mongo/s/query/router_stage_merge.o build/opt/mongo/s/query/router_stage_mock.o build/opt/mongo/s/query/router_stage_pipeline.o build/opt/mongo/s/query/router_stage_remove_metadata_fields.o build/opt/mongo/s/query/router_stage_skip.o build/opt/mongo/s/query/router_stage_update_on_add_shard.o Skipping ranlib for thin archive build/opt/mongo/s/query/librouter_exec_stage.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_create.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_create.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/document_source_group.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/document_source_group.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_cursors.h:38, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_cursors.h:38, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:39, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_cursors.h:38, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_cursors.h:38, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_group.h:38, from src/mongo/db/pipeline/document_source_group.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_group.h:38, from src/mongo/db/pipeline/document_source_group.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_list_local_cursors.cpp: In member function 'virtual mongo::DocumentSource::GetNextResult mongo::DocumentSourceListLocalCursors::getNext()': src/mongo/db/pipeline/document_source_list_local_cursors.cpp:55:25: warning: redundant move in return statement [-Wredundant-move] 55 | return std::move(doc); | ~~~~~~~~~^~~~~ src/mongo/db/pipeline/document_source_list_local_cursors.cpp:55:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_group.cpp: In member function 'mongo::DocumentSource::GetNextResult mongo::DocumentSourceGroup::getNextStandard()': src/mongo/db/pipeline/document_source_group.cpp:149:21: warning: redundant move in return statement [-Wredundant-move] 149 | return std::move(out); | ~~~~~~~~~^~~~~ src/mongo/db/pipeline/document_source_group.cpp:149:21: note: remove 'std::move' call src/mongo/db/pipeline/document_source_group.cpp: In member function 'mongo::DocumentSource::GetNextResult mongo::DocumentSourceGroup::getNextStreaming()': src/mongo/db/pipeline/document_source_group.cpp:190:21: warning: redundant move in return statement [-Wredundant-move] 190 | return std::move(out); | ~~~~~~~~~^~~~~ src/mongo/db/pipeline/document_source_group.cpp:190:21: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/set:60, from src/mongo/db/s/migration_chunk_cloner_source_legacy.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator) [with _Key = mongo::RecordId; _Val = mongo::RecordId; _KeyOfValue = std::_Identity; _Compare = std::less; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2518:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 2518 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2518:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'mongo::Status mongo::MigrationChunkClonerSourceLegacy::nextCloneBatch(mongo::OperationContext*, mongo::Collection*, mongo::BSONArrayBuilder*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1248:2: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1248 | _M_erase_aux(__first, __last); | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(const _Key&) [with _Key = mongo::RecordId; _Val = mongo::RecordId; _KeyOfValue = std::_Identity; _Compare = std::less; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2536:7: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 2536 | _M_erase_aux(__p.first, __p.second); | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_cursors.h:38, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_group.h:38, from src/mongo/db/pipeline/document_source_group.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/kv/kv_database_catalog_entry_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/kv/kv_database_catalog_entry_base.cpp src/mongo/db/pipeline/document_source_list_local_cursors.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceListLocalCursors::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_list_local_cursors.cpp:61:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 61 | boost::intrusive_ptr DocumentSourceListLocalCursors::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_list_local_cursors.h:38, from src/mongo/db/pipeline/document_source_list_local_cursors.cpp:33: src/mongo/db/pipeline/document_source_list_local_cursors.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_listLocalCursors(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:108:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 108 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY( \ | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_list_local_cursors.cpp:43:1: note: in expansion of macro 'REGISTER_TEST_DOCUMENT_SOURCE' 43 | REGISTER_TEST_DOCUMENT_SOURCE(listLocalCursors, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/system_tick_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/system_tick_source.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libindex_create.a build/opt/mongo/db/catalog/index_create.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libindex_create.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/privilege_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/privilege_parser.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/dbclient_rs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/dbclient_rs.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path_traits.hpp:26, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path.hpp:26, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/operations.hpp:25, from src/mongo/db/pipeline/document_source_group.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/storage/kv/libkv_database_catalog_entry_core.a build/opt/mongo/db/storage/kv/kv_database_catalog_entry_base.o Skipping ranlib for thin archive build/opt/mongo/db/storage/kv/libkv_database_catalog_entry_core.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/collection_sharding_runtime.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/collection_sharding_runtime.cpp src/mongo/db/pipeline/document_source_group.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceGroup::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_group.cpp:362:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 362 | intrusive_ptr DocumentSourceGroup::createFromBson( | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_group.h:38, from src/mongo/db/pipeline/document_source_group.cpp:39: src/mongo/db/pipeline/document_source_group.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_group(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_group.cpp:73:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 73 | REGISTER_DOCUMENT_SOURCE(group, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/field_parser.h:328, from src/mongo/db/auth/privilege_parser.cpp:36: src/mongo/db/field_parser-inl.h: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField >&, std::vector*, std::string*) [with T = std::__cxx11::basic_string]': src/mongo/db/field_parser-inl.h:160:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 160 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/audit_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/metadata/audit_metadata.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_sharding_runtime.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_sharding_runtime.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_sharding_runtime.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/drop_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/drop_database.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_sharding_runtime.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/drop_database.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/drop_database.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/drop_database.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/drop_database.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/log_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/log_builder.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/path_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/path_support.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_sharding_runtime.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/data_replicator_external_state_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/data_replicator_external_state_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/update/path_support.h:40, from src/mongo/db/update/path_support.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/update/path_support.h:40, from src/mongo/db/update/path_support.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/update/path_support.h:41, from src/mongo/db/update/path_support.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/role_graph_builtin_roles.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/role_graph_builtin_roles.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/drop_database.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/update/libupdate_common.a build/opt/mongo/db/update/field_checker.o build/opt/mongo/db/update/log_builder.o build/opt/mongo/db/update/path_support.o build/opt/mongo/db/update/storage_validation.o src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/update/libupdate_common.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/role_graph.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/role_graph.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/umutex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/umutex.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/document_validation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/document_validation.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_impl.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/executor/libtask_executor_pool.a build/opt/mongo/executor/task_executor_pool.o Skipping ranlib for thin archive build/opt/mongo/executor/libtask_executor_pool.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_btree_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_btree_impl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_engine.cpp ar rcsTD build/opt/mongo/db/auth/librole_graph.a build/opt/mongo/db/auth/role_graph.o build/opt/mongo/db/auth/role_graph_builtin_roles.o Skipping ranlib for thin archive build/opt/mongo/db/auth/librole_graph.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/winutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/winutil.cpp ar rcsTD build/opt/mongo/util/libwinutil.a build/opt/mongo/util/winutil.o Skipping ranlib for thin archive build/opt/mongo/util/libwinutil.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_limit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_limit.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_index_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_index_stats.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_limit.h:33, from src/mongo/db/pipeline/document_source_limit.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_limit.h:33, from src/mongo/db/pipeline/document_source_limit.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_limit.h:33, from src/mongo/db/pipeline/document_source_limit.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_limit.h:33, from src/mongo/db/pipeline/document_source_limit.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_index_stats.h:34, from src/mongo/db/pipeline/document_source_index_stats.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_index_stats.h:34, from src/mongo/db/pipeline/document_source_index_stats.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_index_stats.h:34, from src/mongo/db/pipeline/document_source_index_stats.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_index_stats.h:34, from src/mongo/db/pipeline/document_source_index_stats.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_out.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_out.cpp ar rcsTD build/opt/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test_core.a build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_btree_impl.o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_engine.o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_recovery_unit.o Skipping ranlib for thin archive build/opt/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test_core.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_coll_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_coll_stats.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_out.h:33, from src/mongo/db/pipeline/document_source_out.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_limit.h:33, from src/mongo/db/pipeline/document_source_limit.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_out.h:33, from src/mongo/db/pipeline/document_source_out.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_out.h:33, from src/mongo/db/pipeline/document_source_out.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_out.h:33, from src/mongo/db/pipeline/document_source_out.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_index_stats.h:34, from src/mongo/db/pipeline/document_source_index_stats.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_coll_stats.h:33, from src/mongo/db/pipeline/document_source_coll_stats.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_coll_stats.h:33, from src/mongo/db/pipeline/document_source_coll_stats.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_coll_stats.h:33, from src/mongo/db/pipeline/document_source_coll_stats.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_coll_stats.h:33, from src/mongo/db/pipeline/document_source_coll_stats.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_limit.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceLimit::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_limit.cpp:99:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 99 | intrusive_ptr DocumentSourceLimit::createFromBson( | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document_source_limit.h:33, from src/mongo/db/pipeline/document_source_limit.cpp:33: src/mongo/db/pipeline/document_source_limit.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_limit(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_limit.cpp:50:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 50 | REGISTER_DOCUMENT_SOURCE(limit, | ^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_index_stats.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceIndexStats::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_index_stats.cpp:77:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 77 | intrusive_ptr DocumentSourceIndexStats::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_index_stats.h:34, from src/mongo/db/pipeline/document_source_index_stats.cpp:33: src/mongo/db/pipeline/document_source_index_stats.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_indexStats(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_index_stats.cpp:43:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 43 | REGISTER_DOCUMENT_SOURCE(indexStats, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_skip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_skip.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_add_fields.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_add_fields.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_out.h:33, from src/mongo/db/pipeline/document_source_out.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_skip.h:33, from src/mongo/db/pipeline/document_source_skip.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_skip.h:33, from src/mongo/db/pipeline/document_source_skip.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_skip.h:33, from src/mongo/db/pipeline/document_source_skip.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_skip.h:33, from src/mongo/db/pipeline/document_source_skip.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_coll_stats.h:33, from src/mongo/db/pipeline/document_source_coll_stats.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_add_fields.h:33, from src/mongo/db/pipeline/document_source_add_fields.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_add_fields.h:33, from src/mongo/db/pipeline/document_source_add_fields.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_add_fields.h:33, from src/mongo/db/pipeline/document_source_add_fields.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_add_fields.h:33, from src/mongo/db/pipeline/document_source_add_fields.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_out.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceOut::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_out.cpp:222:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 222 | intrusive_ptr DocumentSourceOut::createFromBson( | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_out.h:33, from src/mongo/db/pipeline/document_source_out.cpp:33: src/mongo/db/pipeline/document_source_out.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_out(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_out.cpp:77:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 77 | REGISTER_DOCUMENT_SOURCE(out, DocumentSourceOut::liteParse, DocumentSourceOut::createFromBson); | ^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_coll_stats.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceCollStats::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_coll_stats.cpp:53:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 53 | intrusive_ptr DocumentSourceCollStats::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_coll_stats.h:33, from src/mongo/db/pipeline/document_source_coll_stats.cpp:33: src/mongo/db/pipeline/document_source_coll_stats.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_collStats(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_coll_stats.cpp:45:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 45 | REGISTER_DOCUMENT_SOURCE(collStats, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_match.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_match.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_change_stream_transform.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_change_stream_transform.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_skip.h:33, from src/mongo/db/pipeline/document_source_skip.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_add_fields.h:33, from src/mongo/db/pipeline/document_source_add_fields.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/document_source_skip.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceSkip::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_skip.cpp:106:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 106 | intrusive_ptr DocumentSourceSkip::createFromBson( | ^~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_skip.h:33, from src/mongo/db/pipeline/document_source_skip.cpp:33: src/mongo/db/pipeline/document_source_skip.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_skip(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_skip.cpp:51:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 51 | REGISTER_DOCUMENT_SOURCE(skip, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/matcher.h:39, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/matcher.h:39, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/matcher.h:40, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/sequential_document_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/sequential_document_cache.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/matcher.h:40, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_add_fields.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceAddFields::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_add_fields.cpp:63:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 63 | intrusive_ptr DocumentSourceAddFields::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_add_fields.h:33, from src/mongo/db/pipeline/document_source_add_fields.cpp:33: src/mongo/db/pipeline/document_source_add_fields.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_addFields(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_add_fields.cpp:46:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 46 | REGISTER_DOCUMENT_SOURCE(addFields, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_transform.h:33, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_transform.h:33, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_transform.h:33, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_change_stream.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_change_stream.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_transform.h:33, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/sequential_document_cache.h:37, from src/mongo/db/pipeline/sequential_document_cache.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/sequential_document_cache.h:37, from src/mongo/db/pipeline/sequential_document_cache.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document_source_match.cpp:37: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_current_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_current_op.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_change_stream.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_change_stream.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/matcher.h:40, from src/mongo/db/pipeline/document_source_match.h:37, from src/mongo/db/pipeline/document_source_match.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_change_stream.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_change_stream.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_current_op.h:33, from src/mongo/db/pipeline/document_source_current_op.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_current_op.h:33, from src/mongo/db/pipeline/document_source_current_op.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_current_op.h:33, from src/mongo/db/pipeline/document_source_current_op.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_current_op.h:33, from src/mongo/db/pipeline/document_source_current_op.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_transform.h:33, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/document_source_match.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceMatch::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_match.cpp:471:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 471 | intrusive_ptr DocumentSourceMatch::createFromBson( | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_match.h:38, from src/mongo/db/pipeline/document_source_match.cpp:33: src/mongo/db/pipeline/document_source_match.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_match(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_match.cpp:56:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 56 | REGISTER_DOCUMENT_SOURCE(match, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/client/connection_string.h:36, from src/mongo/client/dbclientinterface.h:36, from src/mongo/client/connpool.h:38, from src/mongo/db/pipeline/document_source_match.h:36, from src/mongo/db/pipeline/document_source_match.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_match.cpp: In function 'mongo::Document mongo::{anonymous}::redactSafePortionDollarOps(mongo::BSONObj)': src/mongo/db/pipeline/document_source_match.cpp:200:97: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 200 | PathAcceptingKeyword::EQUALITY)) { | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_sample.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sample.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_change_stream.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_change_stream_transform.h:33, from src/mongo/db/pipeline/document_source_change_stream_transform.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_current_op.h:33, from src/mongo/db/pipeline/document_source_current_op.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::Document mongo::DocumentSourceChangeStreamTransform::applyTransformation(const mongo::Document&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample.h:33, from src/mongo/db/pipeline/document_source_sample.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/document_source_current_op.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceCurrentOp::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_current_op.cpp:175:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 175 | intrusive_ptr DocumentSourceCurrentOp::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_current_op.cpp:175:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample.h:33, from src/mongo/db/pipeline/document_source_sample.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document_source_current_op.h:33, from src/mongo/db/pipeline/document_source_current_op.cpp:33: src/mongo/db/pipeline/document_source_current_op.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_currentOp(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_current_op.cpp:54:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 54 | REGISTER_DOCUMENT_SOURCE(currentOp, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample.h:33, from src/mongo/db/pipeline/document_source_sample.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample.h:33, from src/mongo/db/pipeline/document_source_sample.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_internal_split_pipeline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/document_source.h:35, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_change_stream.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = std::__cxx11::list > (*)(mongo::BSONElement, const boost::intrusive_ptr&); _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_watch_for_uuid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_watch_for_uuid.cpp src/mongo/db/pipeline/document_source_change_stream.cpp: In static member function 'static std::__cxx11::list > mongo::DocumentSourceChangeStream::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_change_stream.cpp:472:37: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 472 | list> DocumentSourceChangeStream::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:33, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:33, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/cluster_aggregation_planner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/cluster_aggregation_planner.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:33, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample.h:33, from src/mongo/db/pipeline/document_source_sample.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:33, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_watch_for_uuid.h:32, from src/mongo/db/pipeline/document_source_watch_for_uuid.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_watch_for_uuid.h:32, from src/mongo/db/pipeline/document_source_watch_for_uuid.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_watch_for_uuid.h:32, from src/mongo/db/pipeline/document_source_watch_for_uuid.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_watch_for_uuid.h:32, from src/mongo/db/pipeline/document_source_watch_for_uuid.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/cluster_aggregation_planner.h:33, from src/mongo/db/pipeline/cluster_aggregation_planner.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/cluster_aggregation_planner.h:33, from src/mongo/db/pipeline/cluster_aggregation_planner.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/pipeline/document_source_sample.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceSample::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_sample.cpp:95:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 95 | intrusive_ptr DocumentSourceSample::createFromBson( | ^~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/cluster_aggregation_planner.h:33, from src/mongo/db/pipeline/cluster_aggregation_planner.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document_source_sample.h:33, from src/mongo/db/pipeline/document_source_sample.cpp:33: src/mongo/db/pipeline/document_source_sample.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_sample(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_sample.cpp:50:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 50 | REGISTER_DOCUMENT_SOURCE(sample, | ^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/cluster_aggregation_planner.h:33, from src/mongo/db/pipeline/cluster_aggregation_planner.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/tee_buffer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/tee_buffer.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:33, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/tee_buffer.h:37, from src/mongo/db/pipeline/tee_buffer.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_watch_for_uuid.h:32, from src/mongo/db/pipeline/document_source_watch_for_uuid.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/tee_buffer.h:37, from src/mongo/db/pipeline/tee_buffer.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceInternalSplitPipeline::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:43:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 43 | boost::intrusive_ptr DocumentSourceInternalSplitPipeline::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_internal_split_pipeline.h:33, from src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:33: src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap__internalSplitPipeline(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_internal_split_pipeline.cpp:37:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 37 | REGISTER_DOCUMENT_SOURCE(_internalSplitPipeline, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_geo_near.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_geo_near.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_change_stream_close_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/tee_buffer.h:38, from src/mongo/db/pipeline/tee_buffer.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/tee_buffer.h:38, from src/mongo/db/pipeline/tee_buffer.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/cluster_aggregation_planner.h:33, from src/mongo/db/pipeline/cluster_aggregation_planner.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/cluster_aggregation_planner.cpp: In function 'void mongo::cluster_aggregation_planner::{anonymous}::limitFieldsSentFromShardsToMerger(mongo::Pipeline*, mongo::Pipeline*)': src/mongo/db/pipeline/cluster_aggregation_planner.cpp:136:93: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 136 | BSON("$project" << mergeDeps.toProjection()).firstElement(), shardPipe->getContext()); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_geo_near.h:33, from src/mongo/db/pipeline/document_source_geo_near.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_geo_near.h:33, from src/mongo/db/pipeline/document_source_geo_near.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_geo_near.h:33, from src/mongo/db/pipeline/document_source_geo_near.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:34, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:34, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_facet.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_facet.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_geo_near.h:33, from src/mongo/db/pipeline/document_source_geo_near.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:34, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:34, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/tee_buffer.h:38, from src/mongo/db/pipeline/tee_buffer.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_internal_inhibit_optimization.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_facet.h:38, from src/mongo/db/pipeline/document_source_facet.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_facet.h:38, from src/mongo/db/pipeline/document_source_facet.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_facet.h:38, from src/mongo/db/pipeline/document_source_facet.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_facet.h:38, from src/mongo/db/pipeline/document_source_facet.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.h:34, from src/mongo/db/pipeline/document_source_change_stream_close_cursor.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_geo_near.h:33, from src/mongo/db/pipeline/document_source_geo_near.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:33, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:33, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:33, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_project.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_project.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:33, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_geo_near.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceGeoNear::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_geo_near.cpp:205:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 205 | intrusive_ptr DocumentSourceGeoNear::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_geo_near.h:33, from src/mongo/db/pipeline/document_source_geo_near.cpp:35: src/mongo/db/pipeline/document_source_geo_near.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_geoNear(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_geo_near.cpp:48:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 48 | REGISTER_DOCUMENT_SOURCE(geoNear, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_bucket.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_bucket.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_facet.h:38, from src/mongo/db/pipeline/document_source_facet.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_project.h:33, from src/mongo/db/pipeline/document_source_project.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_project.h:33, from src/mongo/db/pipeline/document_source_project.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_project.h:33, from src/mongo/db/pipeline/document_source_project.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_project.h:33, from src/mongo/db/pipeline/document_source_project.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:33, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source_facet.h:36, from src/mongo/db/pipeline/document_source_facet.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::Document}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual mongo::DocumentSource::GetNextResult mongo::DocumentSourceFacet::getNext()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_facet.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceFacet::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_facet.cpp:295:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 295 | intrusive_ptr DocumentSourceFacet::createFromBson( | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_facet.cpp:295:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document_source_facet.h:38, from src/mongo/db/pipeline/document_source_facet.cpp:33: src/mongo/db/pipeline/document_source_facet.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_facet(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_facet.cpp:146:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 146 | REGISTER_DOCUMENT_SOURCE(facet, | ^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceInternalInhibitOptimization::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:43:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 43 | boost::intrusive_ptr DocumentSourceInternalInhibitOptimization::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.h:33, from src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:33: src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap__internalInhibitOptimization(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_internal_inhibit_optimization.cpp:37:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 37 | REGISTER_DOCUMENT_SOURCE(_internalInhibitOptimization, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_list_local_sessions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_list_local_sessions.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_sample_from_random_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_project.h:33, from src/mongo/db/pipeline/document_source_project.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/document_source_project.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceProject::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_project.cpp:61:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 61 | intrusive_ptr DocumentSourceProject::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_project.h:33, from src/mongo/db/pipeline/document_source_project.cpp:33: src/mongo/db/pipeline/document_source_project.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_project(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_project.cpp:46:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 46 | REGISTER_DOCUMENT_SOURCE(project, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_count.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_count.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_sessions.h:39, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_sessions.h:39, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_sessions.h:39, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_sessions.h:39, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:33, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:33, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/document_source.h:35, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = std::__cxx11::list > (*)(mongo::BSONElement, const boost::intrusive_ptr&); _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ src/mongo/db/pipeline/document_source_bucket.cpp: In function 'boost::intrusive_ptr mongo::{anonymous}::getExpressionConstant(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&)': src/mongo/db/pipeline/document_source_bucket.cpp:49:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 49 | intrusive_ptr getExpressionConstant( | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_bucket.cpp:53:41: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 53 | auto expr = Expression::parseOperand(expCtx, expressionElem, vps)->optimize(); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:33, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:33, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_bucket.cpp: In static member function 'static std::__cxx11::list > mongo::DocumentSourceBucket::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_bucket.cpp:58:37: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 58 | list> DocumentSourceBucket::createFromBson( | ^~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_bucket.cpp:102:82: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 102 | auto exprConst = getExpressionConstant(pExpCtx, boundaryElem, vps); | ^ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source_bucket.h:33, from src/mongo/db/pipeline/document_source_bucket.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_bucket.cpp:151:74: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 151 | auto exprConst = getExpressionConstant(pExpCtx, argument, vps); | ^ src/mongo/db/pipeline/document_source_bucket.cpp:222:92: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 222 | auto groupSource = DocumentSourceGroup::createFromBson(groupObj.firstElement(), pExpCtx); | ^ src/mongo/db/pipeline/document_source_bucket.cpp:223:89: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 223 | auto sortSource = DocumentSourceSort::createFromBson(sortObj.firstElement(), pExpCtx); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_count.h:33, from src/mongo/db/pipeline/document_source_count.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_count.h:33, from src/mongo/db/pipeline/document_source_count.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_count.h:33, from src/mongo/db/pipeline/document_source_count.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_count.h:33, from src/mongo/db/pipeline/document_source_count.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_list_local_sessions.h:39, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_list_local_sessions.cpp: In static member function 'static boost::intrusive_ptr mongo::DocumentSourceListLocalSessions::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_list_local_sessions.cpp:65:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 65 | boost::intrusive_ptr DocumentSourceListLocalSessions::createFromBson( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document_source_list_local_sessions.h:39, from src/mongo/db/pipeline/document_source_list_local_sessions.cpp:36: src/mongo/db/pipeline/document_source_list_local_sessions.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = mongo::_mongoInitializerFunction_addToDocSourceParserMap_listLocalSessions(mongo::InitializerContext*)::&)>; _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': src/mongo/db/pipeline/document_source.h:97:48: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | (fullParser)(stageSpec, expCtx)}; \ | ^ src/mongo/db/pipeline/document_source.h:105:5: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE_CONDITIONALLY' 105 | REGISTER_DOCUMENT_SOURCE_CONDITIONALLY(key, liteParser, fullParser, true) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_list_local_sessions.cpp:41:1: note: in expansion of macro 'REGISTER_DOCUMENT_SOURCE' 41 | REGISTER_DOCUMENT_SOURCE(listLocalSessions, | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.h:33, from src/mongo/db/pipeline/document_source_sample_from_random_cursor.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_count.h:33, from src/mongo/db/pipeline/document_source_count.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_lookup_change_post_image.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/document_source.h:35, from src/mongo/db/pipeline/document_source_count.h:33, from src/mongo/db/pipeline/document_source_count.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = std::__cxx11::list >; _Functor = std::__cxx11::list > (*)(mongo::BSONElement, const boost::intrusive_ptr&); _ArgTypes = {mongo::BSONElement, const boost::intrusive_ptr&}]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ src/mongo/db/pipeline/document_source_count.cpp: In static member function 'static std::__cxx11::list > mongo::DocumentSourceCount::createFromBson(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/pipeline/document_source_count.cpp:51:37: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 51 | list> DocumentSourceCount::createFromBson( | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/pipeline/document_source_count.cpp:76:92: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 76 | auto groupSource = DocumentSourceGroup::createFromBson(groupObj.firstElement(), pExpCtx); | ^ src/mongo/db/pipeline/document_source_count.cpp:77:98: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 77 | auto projectSource = DocumentSourceProject::createFromBson(projectObj.firstElement(), pExpCtx); | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_tee_consumer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_tee_consumer.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:33, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:33, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:33, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:33, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::Value&}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/document_source.h:40, from src/mongo/db/pipeline/document_source.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual void mongo::DocumentSource::serializeToArray(std::vector&, boost::optional) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_tee_consumer.h:36, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_tee_consumer.h:36, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_tee_consumer.h:36, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_tee_consumer.h:36, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_single_document_transformation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_single_document_transformation.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_check_invalidate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_check_invalidate.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_lookup_change_post_image.h:33, from src/mongo/db/pipeline/document_source_lookup_change_post_image.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_tee_consumer.h:36, from src/mongo/db/pipeline/document_source_tee_consumer.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/signed_logical_time.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/signed_logical_time.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_dutch.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_dutch.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/internal_plans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/internal_plans.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/connection_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/connection_pool.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_single_document_transformation.h:33, from src/mongo/db/pipeline/document_source_single_document_transformation.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/query/internal_plans.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/query/internal_plans.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/pipeline/document_source_change_stream.h:33, from src/mongo/db/pipeline/document_source_check_invalidate.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/query/internal_plans.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/query/internal_plans.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/path_internal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/path_internal.cpp ar rcsTD build/opt/mongo/db/pipeline/libpipeline.a build/opt/mongo/db/pipeline/document_source.o build/opt/mongo/db/pipeline/document_source_add_fields.o build/opt/mongo/db/pipeline/document_source_bucket.o build/opt/mongo/db/pipeline/document_source_bucket_auto.o build/opt/mongo/db/pipeline/document_source_change_stream.o build/opt/mongo/db/pipeline/document_source_change_stream_close_cursor.o build/opt/mongo/db/pipeline/document_source_change_stream_transform.o build/opt/mongo/db/pipeline/document_source_check_invalidate.o build/opt/mongo/db/pipeline/document_source_check_resume_token.o build/opt/mongo/db/pipeline/document_source_coll_stats.o build/opt/mongo/db/pipeline/document_source_count.o build/opt/mongo/db/pipeline/document_source_current_op.o build/opt/mongo/db/pipeline/document_source_facet.o build/opt/mongo/db/pipeline/document_source_geo_near.o build/opt/mongo/db/pipeline/document_source_graph_lookup.o build/opt/mongo/db/pipeline/document_source_group.o build/opt/mongo/db/pipeline/document_source_index_stats.o build/opt/mongo/db/pipeline/document_source_internal_inhibit_optimization.o build/opt/mongo/db/pipeline/document_source_internal_split_pipeline.o build/opt/mongo/db/pipeline/document_source_limit.o build/opt/mongo/db/pipeline/document_source_list_local_cursors.o build/opt/mongo/db/pipeline/document_source_list_local_sessions.o build/opt/mongo/db/pipeline/document_source_list_sessions.o build/opt/mongo/db/pipeline/document_source_lookup.o build/opt/mongo/db/pipeline/document_source_lookup_change_post_image.o build/opt/mongo/db/pipeline/document_source_match.o build/opt/mongo/db/pipeline/document_source_merge_cursors.o build/opt/mongo/db/pipeline/document_source_out.o build/opt/mongo/db/pipeline/document_source_project.o build/opt/mongo/db/pipeline/document_source_redact.o build/opt/mongo/db/pipeline/document_source_replace_root.o build/opt/mongo/db/pipeline/document_source_sample.o build/opt/mongo/db/pipeline/document_source_sample_from_random_cursor.o build/opt/mongo/db/pipeline/document_source_sequential_document_cache.o build/opt/mongo/db/pipeline/document_source_single_document_transformation.o build/opt/mongo/db/pipeline/document_source_skip.o build/opt/mongo/db/pipeline/document_source_sort.o build/opt/mongo/db/pipeline/document_source_sort_by_count.o build/opt/mongo/db/pipeline/cluster_aggregation_planner.o build/opt/mongo/db/pipeline/document_source_tee_consumer.o build/opt/mongo/db/pipeline/document_source_unwind.o build/opt/mongo/db/pipeline/document_source_watch_for_uuid.o build/opt/mongo/db/pipeline/mongo_process_common.o build/opt/mongo/db/pipeline/pipeline.o build/opt/mongo/db/pipeline/sequential_document_cache.o build/opt/mongo/db/pipeline/tee_buffer.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libpipeline.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/authentication_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/authentication_commands.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_allocator.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_create_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_create_impl.cpp src/mongo/client/connection_pool.cpp: In static member function 'static void mongo::ConnectionPool::_destroyConnection_inlock(mongo::ConnectionPool::ConnectionList*, std::__cxx11::list::iterator)': src/mongo/client/connection_pool.cpp:242:6: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 242 | void ConnectionPool::_destroyConnection_inlock(ConnectionList* connList, | ^~~~~~~~~~~~~~ src/mongo/client/connection_pool.cpp: In member function 'void mongo::ConnectionPool::destroyConnection(std::__cxx11::list::iterator)': src/mongo/client/connection_pool.cpp:237:6: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 237 | void ConnectionPool::destroyConnection(ConnectionList::iterator iter) { | ^~~~~~~~~~~~~~ src/mongo/client/connection_pool.cpp:237:6: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 src/mongo/client/connection_pool.cpp:239:30: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 239 | _destroyConnection_inlock(&_inUseConnections, iter); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/client/connection_pool.cpp: In destructor 'mongo::ConnectionPool::ConnectionPtr::~ConnectionPtr()': src/mongo/client/connection_pool.cpp:261:33: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 261 | _pool->destroyConnection(_connInfo); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ src/mongo/client/connection_pool.cpp: In member function 'void mongo::ConnectionPool::_cleanUpOlderThan_inlock(mongo::Date_t, mongo::ConnectionPool::ConnectionList*)': src/mongo/client/connection_pool.cpp:92:38: note: parameter passing for argument of type 'std::_List_iterator' changed in GCC 7.1 92 | _destroyConnection_inlock(hostConns, iter++); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/client/connection_pool.h:33, from src/mongo/client/connection_pool.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple, std::tuple<>}; _Key = mongo::HostAndPort; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2452:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 2452 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from src/mongo/client/connection_pool.h:33, from src/mongo/client/connection_pool.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'std::__cxx11::list::iterator mongo::ConnectionPool::acquireConnection(const mongo::HostAndPort&, mongo::Date_t, mongo::Milliseconds)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, src/mongo/client/connection_pool.cpp:169:34: note: parameter passing for argument of type 'const iterator' {aka 'const std::_List_iterator'} changed in GCC 7.1 169 | _destroyConnection_inlock(&_inUseConnections, candidate); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/client/connection_pool.cpp:164:38: note: parameter passing for argument of type 'const iterator' {aka 'const std::_List_iterator'} changed in GCC 7.1 164 | _destroyConnection_inlock(&_inUseConnections, candidate); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/client/connection_pool.cpp: In member function 'void mongo::ConnectionPool::releaseConnection(std::__cxx11::list::iterator, mongo::Date_t)': src/mongo/client/connection_pool.cpp:223:6: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 223 | void ConnectionPool::releaseConnection(ConnectionList::iterator iter, const Date_t now) { | ^~~~~~~~~~~~~~ src/mongo/client/connection_pool.cpp:226:34: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 226 | _destroyConnection_inlock(&_inUseConnections, iter); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from src/mongo/client/connection_pool.h:33, from src/mongo/client/connection_pool.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, src/mongo/client/connection_pool.cpp: In member function 'void mongo::ConnectionPool::ConnectionPtr::done(mongo::Date_t)': src/mongo/client/connection_pool.cpp:278:29: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 278 | _pool->releaseConnection(_connInfo, now); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/client/libconnection_pool.a build/opt/mongo/client/connection_pool.o Skipping ranlib for thin archive build/opt/mongo/client/libconnection_pool.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/dbclient_connection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/dbclient_connection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/authentication_commands.cpp:52: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/authentication_commands.cpp:52: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/authentication_commands.cpp:52: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/authentication_commands.cpp:52: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create_impl.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create_impl.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/internal_plans.h:34, from src/mongo/db/query/internal_plans.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create_impl.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create_impl.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_connection.cpp:54: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_connection.cpp:54: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_connection.cpp:54: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_connection.cpp:54: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/authentication_commands.cpp:52: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/sasl_client_authenticate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/sasl_client_authenticate.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_create_impl.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/collection_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/collection_impl.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient_connection.cpp:54: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/geo_near.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/geo_near.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_impl.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_impl.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_impl.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_impl.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/uchar.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uchar.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/putil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/putil.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_drop_database_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_drop_database_command.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ubrk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ubrk.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/usc_impl.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/usc_impl.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnv_ext.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_ext.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr_case.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unistr_case.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ubidiln.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ubidiln.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/bytestrie.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/bytestrie.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uloc.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uloc.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/string.h:495, from src/third_party/icu4c-57.1/source/common/cmemory.h:30, from src/third_party/icu4c-57.1/source/common/cstring.h:29, from src/third_party/icu4c-57.1/source/common/uloc.cpp:39: In function 'char* strncpy(char*, const char*, size_t)', inlined from 'int32_t _canonicalize(const char*, char*, int32_t, uint32_t, UErrorCode*)' at src/third_party/icu4c-57.1/source/common/uloc.cpp:1679:13: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, unsigned int)' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/third_party/icu4c-57.1/source/common/uloc.cpp:39: src/third_party/icu4c-57.1/source/common/uloc.cpp: In function 'int32_t _canonicalize(const char*, char*, int32_t, uint32_t, UErrorCode*)': src/third_party/icu4c-57.1/source/common/cstring.h:35:57: note: length computed here 35 | #define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str) src/third_party/icu4c-57.1/source/common/uloc.cpp:1676:24: note: in expansion of macro 'uprv_strlen' 1676 | len = (int32_t)uprv_strlen(d); | ^~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucharstrie.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucharstrie.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uresbund.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uresbund.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_impl.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/near.h:39, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/umath.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/umath.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uset.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uchriter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uchriter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/appendable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/appendable.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustr_wcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustr_wcs.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/serv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/serv.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/exec/near.h:34, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const S2CellId&}; _Tp = S2CellId; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/catalog/collection_impl.cpp:53: src/mongo/db/catalog/uuid_catalog.h: In member function 'virtual void mongo::UUIDCatalogObserver::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/catalog/uuid_catalog.h:53:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 53 | void onInserts(OperationContext* opCtx, | ^~~~~~~~~ src/mongo/db/catalog/uuid_catalog.h:53:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/base/status_with.h:33, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Val_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/filterednormalizer2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/filterednormalizer2.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_drop_database_command.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:62, from src/mongo/db/exec/near.h:34, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = mongo::GeoHash; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/base/status_with.h:33, from src/mongo/db/exec/near.h:37, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::GeoNear2DStage::DensityEstimator::buildIndexScan(mongo::OperationContext*, mongo::WorkingSet*, mongo::Collection*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbidata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbidata.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/bytestriebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/bytestriebuilder.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/catalog/index_catalog.h:34, from src/mongo/db/catalog/private/record_store_validate_adaptor.h:33, from src/mongo/db/catalog/collection_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::InsertStatement&}; _Tp = mongo::InsertStatement; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const int&, const mongo::BSONObj&, mongo::OplogSlot&}; _Tp = mongo::InsertStatement; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::Record&}; _Tp = mongo::Record; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/exec/near.h:34, from src/mongo/db/exec/geo_near.h:33, from src/mongo/db/exec/geo_near.cpp:34: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::StatusWith mongo::GeoNear2DSphereStage::nextInterval(mongo::OperationContext*, mongo::WorkingSet*, mongo::Collection*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::BsonRecord&}; _Tp = mongo::BsonRecord; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/catalog/index_catalog.h:34, from src/mongo/db/catalog/private/record_store_validate_adaptor.h:33, from src/mongo/db/catalog/collection_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::StatusWith mongo::CollectionImpl::_updateDocumentWithMove(mongo::OperationContext*, const mongo::RecordId&, const mongo::Snapshotted&, const mongo::BSONObj&, bool, mongo::OpDebug*, mongo::OplogUpdateEntryArgs*, const mongo::SnapshotId&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/catalog/collection_impl.cpp: In member function 'mongo::Status mongo::CollectionImpl::_insertDocuments(mongo::OperationContext*, std::vector::const_iterator, std::vector::const_iterator, bool, mongo::OpDebug*)': src/mongo/db/catalog/collection_impl.cpp:491:8: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 491 | Status CollectionImpl::_insertDocuments(OperationContext* opCtx, | ^~~~~~~~~~~~~~ src/mongo/db/catalog/collection_impl.cpp:491:8: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/catalog/index_catalog.h:34, from src/mongo/db/catalog/private/record_store_validate_adaptor.h:33, from src/mongo/db/catalog/collection_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnv2022.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv2022.cpp src/mongo/db/catalog/collection_impl.cpp: In member function 'virtual mongo::Status mongo::CollectionImpl::insertDocuments(mongo::OperationContext*, std::vector::const_iterator, std::vector::const_iterator, mongo::OpDebug*, bool, bool)': src/mongo/db/catalog/collection_impl.cpp:350:8: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 350 | Status CollectionImpl::insertDocuments(OperationContext* opCtx, | ^~~~~~~~~~~~~~ src/mongo/db/catalog/collection_impl.cpp:350:8: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 src/mongo/db/catalog/collection_impl.cpp:388:78: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 388 | Status status = _insertDocuments(opCtx, begin, end, enforceQuota, opDebug); | ^ src/mongo/db/catalog/collection_impl.cpp:388:78: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 src/mongo/db/catalog/collection_impl.cpp:393:58: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 393 | getGlobalServiceContext()->getOpObserver()->onInserts( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 394 | opCtx, ns(), uuid(), begin, end, fromMigrate); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/catalog/collection_impl.cpp:393:58: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/catalog/index_catalog.h:34, from src/mongo/db/catalog/private/record_store_validate_adaptor.h:33, from src/mongo/db/catalog/collection_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Status mongo::CollectionImpl::insertDocument(mongo::OperationContext*, const mongo::InsertStatement&, mongo::OpDebug*, bool, bool)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/catalog/collection_impl.cpp:428:95: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 428 | return insertDocuments(opCtx, docs.begin(), docs.end(), opDebug, enforceQuota, fromMigrate); | ^ src/mongo/db/catalog/collection_impl.cpp:428:95: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/catalog/index_catalog.h:34, from src/mongo/db/catalog/private/record_store_validate_adaptor.h:33, from src/mongo/db/catalog/collection_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual mongo::Status mongo::CollectionImpl::insertDocument(mongo::OperationContext*, const mongo::BSONObj&, const std::vector&, bool)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ src/mongo/db/catalog/collection_impl.cpp:482:58: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 482 | getGlobalServiceContext()->getOpObserver()->onInserts( | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ 483 | opCtx, ns(), uuid(), inserts.begin(), inserts.end(), false); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/catalog/collection_impl.cpp:482:58: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustrenum.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustrenum.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/caniter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/caniter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ulistformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ulistformatter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uts46.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uts46.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/parsepos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/parsepos.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ustrfmt.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustrfmt.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/bytestrieiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/bytestrieiterator.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/utf_impl.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utf_impl.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnvmbcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvmbcs.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/uinvchar.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uinvchar.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/locmap.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locmap.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unistr_props.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/brkiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/brkiter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnvsel.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvsel.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbirb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbirb.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/normlzr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/normlzr.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucase.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucase.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucharstrieiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucharstrieiterator.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/icuplug.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/icuplug.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/resbund_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/resbund_cnv.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/normalizer2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/normalizer2.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unames.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uset_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uset_props.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/uloc_tag.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uloc_tag.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/normalizer2impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/normalizer2impl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/brkeng.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/brkeng.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uprops.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uprops.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/servlkf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/servlkf.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/servls.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/servls.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uvectr32.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uvectr32.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/dictbe.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/dictbe.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/utrie2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utrie2.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustack.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uniset_closure.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uniset_closure.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbitblb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbitblb.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/locresdata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locresdata.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/errorcode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/errorcode.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/locavailable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locavailable.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/sharedobject.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/sharedobject.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/propsvec.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/propsvec.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnv_io.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_io.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustrtrns.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustrtrns.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/wintz.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/wintz.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustrcase_locale.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustrcase_locale.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/uhash.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uhash.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbinode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbinode.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvisci.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvisci.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustr_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustr_cnv.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unistr_cnv.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucat.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucat.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/locid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locid.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uidna.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uidna.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/utypes.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utypes.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/locbased.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locbased.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/loclikely.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/loclikely.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvscsu.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvscsu.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unorm.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unorm.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvhz.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvhz.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbiscan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbiscan.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uscript_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uscript_props.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/locdispnames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locdispnames.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uresdata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uresdata.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustr_titlecase_brkiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustr_titlecase_brkiter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/cstring.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/cstring.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unistr.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucol_swp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucol_swp.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unisetspan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unisetspan.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/udataswp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/udataswp.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/utrace.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utrace.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/utext.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utext.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/servlk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/servlk.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ures_cnv.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ures_cnv.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/udata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/udata.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/uenum.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uenum.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/servrbf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/servrbf.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/stringpiece.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/stringpiece.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/bytestream.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/bytestream.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ruleiter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ruleiter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ucnvbocu.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvbocu.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ubidiwrt.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ubidiwrt.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uvectr64.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uvectr64.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_cb.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_cb.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/rbbistbl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/rbbistbl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/dtintrv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/dtintrv.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/dictionarydata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/dictionarydata.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/pluralmap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/pluralmap.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uniset_props.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uniset_props.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/udatamem.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/udatamem.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unifiedcache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unifiedcache.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/charstr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/charstr.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ubidi_props.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ubidi_props.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/icudataver.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/icudataver.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/patternprops.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/patternprops.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_u8.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_u8.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_set.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_set.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_lmb.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_lmb.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unistr_case_locale.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unistr_case_locale.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/simpleformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/simpleformatter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ushape.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ushape.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/uscript.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uscript.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/resbund.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/resbund.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/filteredbrk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/filteredbrk.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustrcase.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustrcase.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvlat1.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvlat1.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_u7.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_u7.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/locutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/locutil.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/utrie2_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/utrie2_builder.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnvdisp.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnvdisp.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/common/ucnv_u32.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ucnv_u32.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/uniset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/uniset.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/unormcmp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/unormcmp.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/stringtriebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/stringtriebuilder.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/loadednormalizer2impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/loadednormalizer2impl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/common/ustring.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_COMMON_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/common/ustring.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/ftdc_system_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_system_stats.cpp ar rcsTD build/opt/mongo/db/storage/libstorage_options.a build/opt/mongo/db/storage/storage_options.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_options.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/coll_mod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/coll_mod.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_path_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_path_support.cpp Using tempfile /tmp/tmpLN7GWG.lnk for command line: ar rcsTD build/opt/third_party/icu4c-57.1/source/libicu_common.a build/opt/third_party/icu4c-57.1/source/common/appendable.o build/opt/third_party/icu4c-57.1/source/common/bmpset.o build/opt/third_party/icu4c-57.1/source/common/brkeng.o build/opt/third_party/icu4c-57.1/source/common/brkiter.o build/opt/third_party/icu4c-57.1/source/common/bytestream.o build/opt/third_party/icu4c-57.1/source/common/bytestrie.o build/opt/third_party/icu4c-57.1/source/common/bytestriebuilder.o build/opt/third_party/icu4c-57.1/source/common/bytestrieiterator.o build/opt/third_party/icu4c-57.1/source/common/caniter.o build/opt/third_party/icu4c-57.1/source/common/chariter.o build/opt/third_party/icu4c-57.1/source/common/charstr.o build/opt/third_party/icu4c-57.1/source/common/cmemory.o build/opt/third_party/icu4c-57.1/source/common/cstr.o build/opt/third_party/icu4c-57.1/source/common/cstring.o build/opt/third_party/icu4c-57.1/source/common/cwchar.o build/opt/third_party/icu4c-57.1/source/common/dictbe.o build/opt/third_party/icu4c-57.1/source/common/dictionarydata.o build/opt/third_party/icu4c-57.1/source/common/dtintrv.o build/opt/third_party/icu4c-57.1/source/common/errorcode.o build/opt/third_party/icu4c-57.1/source/common/filteredbrk.o build/opt/third_party/icu4c-57.1/source/common/filterednormalizer2.o build/opt/third_party/icu4c-57.1/source/common/icudataver.o build/opt/third_party/icu4c-57.1/source/common/icuplug.o build/opt/third_party/icu4c-57.1/source/common/listformatter.o build/opt/third_party/icu4c-57.1/source/common/loadednormalizer2impl.o build/opt/third_party/icu4c-57.1/source/common/locavailable.o build/opt/third_party/icu4c-57.1/source/common/locbased.o build/opt/third_party/icu4c-57.1/source/common/locdispnames.o build/opt/third_party/icu4c-57.1/source/common/locdspnm.o build/opt/third_party/icu4c-57.1/source/common/locid.o build/opt/third_party/icu4c-57.1/source/common/loclikely.o build/opt/third_party/icu4c-57.1/source/common/locmap.o build/opt/third_party/icu4c-57.1/source/common/locresdata.o build/opt/third_party/icu4c-57.1/source/common/locutil.o build/opt/third_party/icu4c-57.1/source/common/messagepattern.o build/opt/third_party/icu4c-57.1/source/common/normalizer2.o build/opt/third_party/icu4c-57.1/source/common/normalizer2impl.o build/opt/third_party/icu4c-57.1/source/common/normlzr.o build/opt/third_party/icu4c-57.1/source/common/parsepos.o build/opt/third_party/icu4c-57.1/source/common/patternprops.o build/opt/third_party/icu4c-57.1/source/common/pluralmap.o build/opt/third_party/icu4c-57.1/source/common/propname.o build/opt/third_party/icu4c-57.1/source/common/propsvec.o build/opt/third_party/icu4c-57.1/source/common/punycode.o build/opt/third_party/icu4c-57.1/source/common/putil.o build/opt/third_party/icu4c-57.1/source/common/rbbi.o build/opt/third_party/icu4c-57.1/source/common/rbbidata.o build/opt/third_party/icu4c-57.1/source/common/rbbinode.o build/opt/third_party/icu4c-57.1/source/common/rbbirb.o build/opt/third_party/icu4c-57.1/source/common/rbbiscan.o build/opt/third_party/icu4c-57.1/source/common/rbbisetb.o build/opt/third_party/icu4c-57.1/source/common/rbbistbl.o build/opt/third_party/icu4c-57.1/source/common/rbbitblb.o build/opt/third_party/icu4c-57.1/source/common/resbund.o build/opt/third_party/icu4c-57.1/source/common/resbund_cnv.o build/opt/third_party/icu4c-57.1/source/common/resource.o build/opt/third_party/icu4c-57.1/source/common/ruleiter.o build/opt/third_party/icu4c-57.1/source/common/schriter.o build/opt/third_party/icu4c-57.1/source/common/serv.o build/opt/third_party/icu4c-57.1/source/common/servlk.o build/opt/third_party/icu4c-57.1/source/common/servlkf.o build/opt/third_party/icu4c-57.1/source/common/servls.o build/opt/third_party/icu4c-57.1/source/common/servnotf.o build/opt/third_party/icu4c-57.1/source/common/servrbf.o build/opt/third_party/icu4c-57.1/source/common/servslkf.o build/opt/third_party/icu4c-57.1/source/common/sharedobject.o build/opt/third_party/icu4c-57.1/source/common/simpleformatter.o build/opt/third_party/icu4c-57.1/source/common/stringpiece.o build/opt/third_party/icu4c-57.1/source/common/stringtriebuilder.o build/opt/third_party/icu4c-57.1/source/common/uarrsort.o build/opt/third_party/icu4c-57.1/source/common/ubidi.o build/opt/third_party/icu4c-57.1/source/common/ubidi_props.o build/opt/third_party/icu4c-57.1/source/common/ubidiln.o build/opt/third_party/icu4c-57.1/source/common/ubidiwrt.o build/opt/third_party/icu4c-57.1/source/common/ubrk.o build/opt/third_party/icu4c-57.1/source/common/ucase.o build/opt/third_party/icu4c-57.1/source/common/ucasemap.o build/opt/third_party/icu4c-57.1/source/common/ucasemap_titlecase_brkiter.o build/opt/third_party/icu4c-57.1/source/common/ucat.o build/opt/third_party/icu4c-57.1/source/common/uchar.o build/opt/third_party/icu4c-57.1/source/common/ucharstrie.o build/opt/third_party/icu4c-57.1/source/common/ucharstriebuilder.o build/opt/third_party/icu4c-57.1/source/common/ucharstrieiterator.o build/opt/third_party/icu4c-57.1/source/common/uchriter.o build/opt/third_party/icu4c-57.1/source/common/ucln_cmn.o build/opt/third_party/icu4c-57.1/source/common/ucmndata.o build/opt/third_party/icu4c-57.1/source/common/ucnv.o build/opt/third_party/icu4c-57.1/source/common/ucnv2022.o build/opt/third_party/icu4c-57.1/source/common/ucnv_bld.o build/opt/third_party/icu4c-57.1/source/common/ucnv_cb.o build/opt/third_party/icu4c-57.1/source/common/ucnv_cnv.o build/opt/third_party/icu4c-57.1/source/common/ucnv_ct.o build/opt/third_party/icu4c-57.1/source/common/ucnv_err.o build/opt/third_party/icu4c-57.1/source/common/ucnv_ext.o build/opt/third_party/icu4c-57.1/source/common/ucnv_io.o build/opt/third_party/icu4c-57.1/source/common/ucnv_lmb.o build/opt/third_party/icu4c-57.1/source/common/ucnv_set.o build/opt/third_party/icu4c-57.1/source/common/ucnv_u16.o build/opt/third_party/icu4c-57.1/source/common/ucnv_u32.o build/opt/third_party/icu4c-57.1/source/common/ucnv_u7.o build/opt/third_party/icu4c-57.1/source/common/ucnv_u8.o build/opt/third_party/icu4c-57.1/source/common/ucnvbocu.o build/opt/third_party/icu4c-57.1/source/common/ucnvdisp.o build/opt/third_party/icu4c-57.1/source/common/ucnvhz.o build/opt/third_party/icu4c-57.1/source/common/ucnvisci.o build/opt/third_party/icu4c-57.1/source/common/ucnvlat1.o build/opt/third_party/icu4c-57.1/source/common/ucnvmbcs.o build/opt/third_party/icu4c-57.1/source/common/ucnvscsu.o build/opt/third_party/icu4c-57.1/source/common/ucnvsel.o build/opt/third_party/icu4c-57.1/source/common/ucol_swp.o build/opt/third_party/icu4c-57.1/source/common/ucurr.o build/opt/third_party/icu4c-57.1/source/common/udata.o build/opt/third_party/icu4c-57.1/source/common/udatamem.o build/opt/third_party/icu4c-57.1/source/common/udataswp.o build/opt/third_party/icu4c-57.1/source/common/uenum.o build/opt/third_party/icu4c-57.1/source/common/uhash.o build/opt/third_party/icu4c-57.1/source/common/uhash_us.o build/opt/third_party/icu4c-57.1/source/common/uidna.o build/opt/third_party/icu4c-57.1/source/common/uinit.o build/opt/third_party/icu4c-57.1/source/common/uinvchar.o build/opt/third_party/icu4c-57.1/source/common/uiter.o build/opt/third_party/icu4c-57.1/source/common/ulist.o build/opt/third_party/icu4c-57.1/source/common/ulistformatter.o build/opt/third_party/icu4c-57.1/source/common/uloc.o build/opt/third_party/icu4c-57.1/source/common/uloc_keytype.o build/opt/third_party/icu4c-57.1/source/common/uloc_tag.o build/opt/third_party/icu4c-57.1/source/common/umapfile.o build/opt/third_party/icu4c-57.1/source/common/umath.o build/opt/third_party/icu4c-57.1/source/common/umutex.o build/opt/third_party/icu4c-57.1/source/common/unames.o build/opt/third_party/icu4c-57.1/source/common/unifiedcache.o build/opt/third_party/icu4c-57.1/source/common/unifilt.o build/opt/third_party/icu4c-57.1/source/common/unifunct.o build/opt/third_party/icu4c-57.1/source/common/uniset.o build/opt/third_party/icu4c-57.1/source/common/uniset_closure.o build/opt/third_party/icu4c-57.1/source/common/uniset_props.o build/opt/third_party/icu4c-57.1/source/common/unisetspan.o build/opt/third_party/icu4c-57.1/source/common/unistr.o build/opt/third_party/icu4c-57.1/source/common/unistr_case.o build/opt/third_party/icu4c-57.1/source/common/unistr_case_locale.o build/opt/third_party/icu4c-57.1/source/common/unistr_cnv.o build/opt/third_party/icu4c-57.1/source/common/unistr_props.o build/opt/third_party/icu4c-57.1/source/common/unistr_titlecase_brkiter.o build/opt/third_party/icu4c-57.1/source/common/unorm.o build/opt/third_party/icu4c-57.1/source/common/unormcmp.o build/opt/third_party/icu4c-57.1/source/common/uobject.o build/opt/third_party/icu4c-57.1/source/common/uprops.o build/opt/third_party/icu4c-57.1/source/common/ures_cnv.o build/opt/third_party/icu4c-57.1/source/common/uresbund.o build/opt/third_party/icu4c-57.1/source/common/uresdata.o build/opt/third_party/icu4c-57.1/source/common/usc_impl.o build/opt/third_party/icu4c-57.1/source/common/uscript.o build/opt/third_party/icu4c-57.1/source/common/uscript_props.o build/opt/third_party/icu4c-57.1/source/common/uset.o build/opt/third_party/icu4c-57.1/source/common/uset_props.o build/opt/third_party/icu4c-57.1/source/common/usetiter.o build/opt/third_party/icu4c-57.1/source/common/ushape.o build/opt/third_party/icu4c-57.1/source/common/usprep.o build/opt/third_party/icu4c-57.1/source/common/ustack.o build/opt/third_party/icu4c-57.1/source/common/ustr_cnv.o build/opt/third_party/icu4c-57.1/source/common/ustr_titlecase_brkiter.o build/opt/third_party/icu4c-57.1/source/common/ustr_wcs.o build/opt/third_party/icu4c-57.1/source/common/ustrcase.o build/opt/third_party/icu4c-57.1/source/common/ustrcase_locale.o build/opt/third_party/icu4c-57.1/source/common/ustrenum.o build/opt/third_party/icu4c-57.1/source/common/ustrfmt.o build/opt/third_party/icu4c-57.1/source/common/ustring.o build/opt/third_party/icu4c-57.1/source/common/ustrtrns.o build/opt/third_party/icu4c-57.1/source/common/utext.o build/opt/third_party/icu4c-57.1/source/common/utf_impl.o build/opt/third_party/icu4c-57.1/source/common/util.o build/opt/third_party/icu4c-57.1/source/common/util_props.o build/opt/third_party/icu4c-57.1/source/common/utrace.o build/opt/third_party/icu4c-57.1/source/common/utrie.o build/opt/third_party/icu4c-57.1/source/common/utrie2.o build/opt/third_party/icu4c-57.1/source/common/utrie2_builder.o build/opt/third_party/icu4c-57.1/source/common/uts46.o build/opt/third_party/icu4c-57.1/source/common/utypes.o build/opt/third_party/icu4c-57.1/source/common/uvector.o build/opt/third_party/icu4c-57.1/source/common/uvectr32.o build/opt/third_party/icu4c-57.1/source/common/uvectr64.o build/opt/third_party/icu4c-57.1/source/common/wintz.o ar @/tmp/tmpLN7GWG.lnk Skipping ranlib for thin archive build/opt/third_party/icu4c-57.1/source/libicu_common.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/signal_handlers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/signal_handlers.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_path_support.h:35, from src/mongo/db/pipeline/document_path_support.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_path_support.h:35, from src/mongo/db/pipeline/document_path_support.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_pcrecpp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_pcrecpp.cc /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/message_compressor_snappy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/transport/message_compressor_snappy.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/invalidate_view_catalog_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/invalidate_view_catalog_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/coll_mod.cpp:47: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/coll_mod.cpp:47: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/coll_mod.cpp:47: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager_chunk_operations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/coll_mod.cpp:47: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/timer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/timer.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/invalidate_view_catalog_command.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/invalidate_view_catalog_command.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/invalidate_view_catalog_command.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/invalidate_view_catalog_command.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nultrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/nultrans.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/cursor_response.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/cursor_response.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/cursor_response.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/cursor_response.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/cursor_response.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/cursor_response.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/catalog/coll_mod.cpp:47: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/invalidate_view_catalog_command.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/view_response_formatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/view_response_formatter.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/cursor_response.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/view_response_formatter.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/view_response_formatter.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/view_response_formatter.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/view_response_formatter.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:35, from src/mongo/db/s/config/sharding_catalog_manager.h:35, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::ChunkType&}; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::ChunkType}; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:35, from src/mongo/db/s/config/sharding_catalog_manager.h:35, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::Status mongo::ShardingCatalogManager::commitChunkMerge(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::OID&, const std::vector >&, const string&, const boost::optional&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/killcursors_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/killcursors_request.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/cursor_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/cursor_request.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/concurrency/locker.h:34, from src/mongo/db/concurrency/d_concurrency.h:35, from src/mongo/db/s/config/sharding_catalog_manager.h:35, from src/mongo/db/s/config/sharding_catalog_manager_chunk_operations.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::Status mongo::ShardingCatalogManager::commitChunkSplit(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::OID&, const mongo::ChunkRange&, const std::vector >&, const string&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/count_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/count_request.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/db/query/view_response_formatter.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_request.h:37, from src/mongo/db/query/killcursors_request.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_request.h:37, from src/mongo/db/query/killcursors_request.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_request.h:37, from src/mongo/db/query/killcursors_request.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_request.h:37, from src/mongo/db/query/killcursors_request.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/getmore_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/getmore_request.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_processor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_processor.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/getmore_request.h:38, from src/mongo/db/query/getmore_request.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/getmore_request.h:38, from src/mongo/db/query/getmore_request.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/query/count_request.cpp: In static member function 'static mongo::StatusWith mongo::CountRequest::parseFromBSON(const mongo::NamespaceString&, const mongo::BSONObj&, bool)': src/mongo/db/query/count_request.cpp:99:78: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 99 | auto maxTimeMS = QueryRequest::parseMaxTimeMS(cmdObj[kMaxTimeMSField]); | ^ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/getmore_request.h:38, from src/mongo/db/query/getmore_request.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/killcursors_request.h:37, from src/mongo/db/query/killcursors_request.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/getmore_request.h:38, from src/mongo/db/query/getmore_request.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/plurfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/plurfmt.cpp ar rcsTD build/opt/mongo/util/libelapsed_tracker.a build/opt/mongo/util/elapsed_tracker.o Skipping ranlib for thin archive build/opt/mongo/util/libelapsed_tracker.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/get_database_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/get_database_version_command.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/query/killcursors_request.h:33, from src/mongo/db/query/killcursors_request.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {long long int}; _Tp = long long int; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In static member function 'static mongo::StatusWith mongo::KillCursorsRequest::parseFromBSON(const string&, const mongo::BSONObj&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ src/mongo/db/query/killcursors_request.cpp:92:1: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 92 | } | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/chunk_manager_targeter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/write_ops/chunk_manager_targeter.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/getmore_request.h:38, from src/mongo/db/query/getmore_request.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_database_version_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_database_version_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_database_version_command.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_database_version_command.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/query/getmore_request.cpp: In static member function 'static mongo::StatusWith mongo::GetMoreRequest::parseFromBSON(const string&, const mongo::BSONObj&)': src/mongo/db/query/getmore_request.cpp:143:68: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 143 | auto maxAwaitDataTime = QueryRequest::parseMaxTimeMS(el); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/query/libcommand_request_response.a build/opt/mongo/db/query/count_request.o build/opt/mongo/db/query/cursor_request.o build/opt/mongo/db/query/cursor_response.o build/opt/mongo/db/query/find_and_modify_request.o build/opt/mongo/db/query/getmore_request.o build/opt/mongo/db/query/killcursors_request.o build/opt/mongo/db/query/killcursors_response.o build/opt/mongo/db/query/view_response_formatter.o Skipping ranlib for thin archive build/opt/mongo/db/query/libcommand_request_response.a /home/buildroot/autobuild/instance-1/output-1/host/bin/python src/mongo/db/fts/unicode/gen_casefold_map.py src/third_party/unicode-8.0.0/CaseFolding.txt build/opt/mongo/db/fts/unicode/codepoints_casefold.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/unicode/codepoints_casefold.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/fts/unicode/codepoints_casefold.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/global_initializer_registerer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/global_initializer_registerer.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/d_concurrency.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/concurrency/d_concurrency.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/python src/mongo/util/generate_icu_init_cpp.py -o build/opt/mongo/util/icu_init.cpp -i src/third_party/icu4c-57.1/source/mongo_sources/icudt57l.dat In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/get_database_version_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/icu_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc build/opt/mongo/util/icu_init.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/utrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/utrans.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/identifier_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/identifier_info.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/rollback_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/repl/rollback_gen.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonobj.h:40, from src/mongo/s/write_ops/chunk_manager_targeter.h:35, from src/mongo/s/write_ops/chunk_manager_targeter.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::ShardId, const mongo::ChunkVersion&}; _Tp = mongo::ShardEndpoint; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/config_server_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/config_server_client.cpp /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual mongo::StatusWith > mongo::ChunkManagerTargeter::targetAllShards(mongo::OperationContext*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::ShardId, const mongo::ChunkVersion&}; _Tp = mongo::ShardEndpoint; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const mongo::ShardId, const mongo::ChunkVersion&}; _Tp = mongo::ShardEndpoint; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/parsed_distinct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/parsed_distinct.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/parsed_distinct.h:37, from src/mongo/db/query/parsed_distinct.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/parsed_distinct.h:37, from src/mongo/db/query/parsed_distinct.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/parsed_distinct.h:37, from src/mongo/db/query/parsed_distinct.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/find_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/find_common.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/parsed_distinct.h:37, from src/mongo/db/query/parsed_distinct.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/rollback_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/find_common.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/find_common.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/find_common.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/find_common.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/parsed_distinct.h:37, from src/mongo/db/query/parsed_distinct.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/librollback_idl.a build/opt/mongo/db/repl/rollback_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librollback_idl.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/namespace_serializer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/namespace_serializer.cpp src/mongo/db/query/parsed_distinct.cpp: In static member function 'static mongo::StatusWith mongo::ParsedDistinct::parse(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::BSONObj&, const mongo::ExtensionsCallback&, bool)': src/mongo/db/query/parsed_distinct.cpp:266:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 266 | auto maxTimeMS = QueryRequest::parseMaxTimeMS(maxTimeMSElt); | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/redaction.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/redaction.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/concurrency/ticketholder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/concurrency/ticketholder.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/find_common.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/kill_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/kill_sessions_command.cpp ar rcsTD build/opt/mongo/db/query/libquery_common.a build/opt/mongo/db/query/collation/collator_factory_icu_decoration.o build/opt/mongo/db/query/find_common.o build/opt/mongo/db/query/parsed_distinct.o Skipping ranlib for thin archive build/opt/mongo/db/query/libquery_common.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/start_session_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/start_session_command.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/end_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/end_sessions_command.cpp ar rcsTD build/opt/mongo/util/concurrency/libticketholder.a build/opt/mongo/util/concurrency/ticketholder.o Skipping ranlib for thin archive build/opt/mongo/util/concurrency/libticketholder.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/kill_all_sessions_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/kill_all_sessions_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_command.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move 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:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_command.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_command.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_command.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_command.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_command.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_command.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_command.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/end_sessions_command.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/kill_all_sessions_by_pattern_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_sessions_command.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/start_session_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/hashcmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/hashcmd.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/rename_collection_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/rename_collection_common.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_command.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/refresh_logical_session_cache_now.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/refresh_logical_session_cache_now.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/hashcmd.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/hashcmd.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/hashcmd.cpp:45: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/hashcmd.cpp:45: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/parameters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/parameters.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/hashcmd.cpp:45: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_all_sessions_by_pattern_command.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/copydb_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/copydb_common.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/parameters.cpp:46: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/parameters.cpp:46: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/parameters.cpp:46: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/parameters.cpp:46: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_logical_session_cache_now.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/copydb.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/copydb.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/user_management_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/user_management_commands.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/parameters.cpp:46: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/collection_to_capped.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/collection_to_capped.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/copydb.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/copydb.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/copydb.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/copydb.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:63: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:63: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:63: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:63: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/collection_to_capped.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/collection_to_capped.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/collection_to_capped.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/collection_to_capped.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/commands/libcore.a build/opt/mongo/db/commands/copydb_common.o build/opt/mongo/db/commands/end_sessions_command.o build/opt/mongo/db/commands/fail_point_cmd.o build/opt/mongo/db/commands/find_and_modify_common.o build/opt/mongo/db/commands/generic.o build/opt/mongo/db/commands/hashcmd.o build/opt/mongo/db/commands/kill_all_sessions_by_pattern_command.o build/opt/mongo/db/commands/kill_all_sessions_command.o build/opt/mongo/db/commands/kill_sessions_command.o build/opt/mongo/db/commands/parameters.o build/opt/mongo/db/commands/refresh_logical_session_cache_now.o build/opt/mongo/db/commands/refresh_sessions_command.o build/opt/mongo/db/commands/rename_collection_common.o build/opt/mongo/db/commands/start_session_command.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libcore.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/cpuload.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/cpuload.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/user_management_commands.cpp:63: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/copydb.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/cpuload.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/cpuload.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/cpuload.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/cpuload.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/collection_to_capped.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/top_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/top_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/cpuload.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/dbcommands_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/dbcommands_d.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/parallel_collection_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/parallel_collection_scan.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/top_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/top_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/top_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/top_command.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands_d.cpp:57: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands_d.cpp:57: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/parallel_collection_scan.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands_d.cpp:57: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/parallel_collection_scan.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands_d.cpp:57: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/parallel_collection_scan.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/parallel_collection_scan.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/mr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/mr.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/top_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/repl/apply_ops_gen.h --output build/opt/mongo/db/repl/apply_ops_gen.cpp src/mongo/db/repl/apply_ops.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/apply_ops_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/apply_ops_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/parallel_collection_scan.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/apply_ops_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/apply_ops_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands_d.cpp:57: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/apply_ops_cmd.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/apply_ops_cmd.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/dbcheck.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/dbcheck.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/restart_catalog_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/restart_catalog_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/dbcheck.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/dbcheck.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/apply_ops_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/dbcheck.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/dbcheck.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/restart_catalog_command.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/restart_catalog_command.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/restart_catalog_command.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/restart_catalog_command.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/set_feature_compatibility_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/set_feature_compatibility_version_command.cpp In file included from src/mongo/platform/decimal128.h:41, from src/mongo/platform/endian.h:40, from src/mongo/base/data_range.h:40, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/jsobj.h:49, from src/mongo/bson/mutable/element.h:37, from src/mongo/db/auth/privilege.h:35, from src/mongo/db/commands/mr.h:38, from src/mongo/db/commands/mr.cpp:35: src/mongo/db/commands/mr.cpp: In member function 'virtual bool mongo::mr::MapReduceFinishCommand::run(mongo::OperationContext*, const string&, const mongo::BSONObj&, mongo::BSONObjBuilder&)': src/mongo/db/commands/mr.cpp:1760:44: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1760 | uassertStatusOK(UUID::parse(cmdObj["shardedOutputCollUUID"])); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/dbcheck.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/restart_catalog_command.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/oplog_note.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/oplog_note.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/clone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/clone.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/auth/authorization_session.h:35, from src/mongo/db/commands/dbcheck.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::{anonymous}::DbCheckCollectionInfo&}; _Tp = mongo::{anonymous}::DbCheckCollectionInfo; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/auth/authorization_session.h:35, from src/mongo/db/commands/dbcheck.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual bool mongo::{anonymous}::DbCheckCmd::run(mongo::OperationContext*, const string&, const mongo::BSONObj&, mongo::BSONObjBuilder&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/oplog_note.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/oplog_note.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/oplog_note.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/oplog_application_checks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/oplog_application_checks.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/clone.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/oplog_note.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/clone.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/clone.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/clone.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/set_feature_compatibility_version_command.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/oplog_application_checks.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/oplog_application_checks.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/oplog_application_checks.cpp:32: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/oplog_application_checks.cpp:32: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/clone.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/oplog_note.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/copydb_start_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/copydb_start_commands.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/compact.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/compact.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/global_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/global_settings.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/oplog_application_checks.cpp:32: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_catalog_entry.cpp In file included from src/mongo/platform/decimal128.h:41, from src/mongo/platform/endian.h:40, from src/mongo/base/data_range.h:40, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/jsobj.h:49, from src/mongo/bson/mutable/element.h:37, from src/mongo/db/auth/privilege.h:35, from src/mongo/db/commands.h:41, from src/mongo/bson/util/bson_check.h:35, from src/mongo/db/commands/oplog_application_checks.cpp:32: src/mongo/db/commands/oplog_application_checks.cpp: In static member function 'static mongo::UUID mongo::OplogApplicationChecks::getUUIDFromOplogEntry(const mongo::BSONObj&)': src/mongo/db/commands/oplog_application_checks.cpp:42:39: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 42 | return uassertStatusOK(UUID::parse(uiElem)); | ~~~~~~~~~~~^~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/compact.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/compact.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/copydb_start_commands.cpp:46: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/copydb_start_commands.cpp:46: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/compact.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/copydb_start_commands.cpp:46: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_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::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_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:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/compact.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/copydb_start_commands.cpp:46: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/sharding_task_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/sharding_task_executor.cpp ar rcsTD build/opt/mongo/db/catalog/libindex_catalog_entry.a build/opt/mongo/db/catalog/index_catalog_entry.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libindex_catalog_entry.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/matcher_type_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/matcher_type_set.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/copydb_start_commands.cpp:46: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/matcher_type_set.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/matcher_type_set.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/matcher_type_set.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/matcher_type_set.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulation_statement.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulation_statement.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/compact.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/accumulation_statement.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulation_statement.h:36, from src/mongo/db/pipeline/accumulation_statement.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/s/libsharding_task_executor.a build/opt/mongo/s/sharding_task_executor.o Skipping ranlib for thin archive build/opt/mongo/s/libsharding_task_executor.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_with_placeholder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_with_placeholder.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/matcher_type_set.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/commands/libmongod.a build/opt/mongo/db/commands/apply_ops_cmd.o build/opt/mongo/db/commands/clone.o build/opt/mongo/db/commands/clone_collection.o build/opt/mongo/db/commands/collection_to_capped.o build/opt/mongo/db/commands/compact.o build/opt/mongo/db/commands/copydb.o build/opt/mongo/db/commands/copydb_start_commands.o build/opt/mongo/db/commands/cpuload.o build/opt/mongo/db/commands/dbcheck.o build/opt/mongo/db/commands/dbcommands_d.o build/opt/mongo/db/commands/dbhash.o build/opt/mongo/db/commands/do_txn_cmd.o build/opt/mongo/db/commands/driverHelpers.o build/opt/mongo/db/commands/eval.o build/opt/mongo/db/commands/group_cmd.o build/opt/mongo/db/commands/haystack.o build/opt/mongo/db/commands/invalidate_view_catalog_command.o build/opt/mongo/db/commands/mr.o build/opt/mongo/db/commands/oplog_application_checks.o build/opt/mongo/db/commands/oplog_note.o build/opt/mongo/db/commands/parallel_collection_scan.o build/opt/mongo/db/commands/resize_oplog.o build/opt/mongo/db/commands/restart_catalog_command.o build/opt/mongo/db/commands/set_feature_compatibility_version_command.o build/opt/mongo/db/commands/shutdown_d.o build/opt/mongo/db/commands/snapshot_management.o build/opt/mongo/db/commands/top_command.o build/opt/mongo/db/commands/touch.o build/opt/mongo/db/commands/txn_cmds.o build/opt/mongo/db/commands/user_management_commands.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libmongod.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/write_concern_error_detail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/write_concern_error_detail.cpp src/mongo/db/matcher/matcher_type_set.cpp: In function 'mongo::Status mongo::{anonymous}::parseSingleType(mongo::BSONElement, mongo::StringMap&, mongo::MatcherTypeSet*)': src/mongo/db/matcher/matcher_type_set.cpp:73:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 73 | Status parseSingleType(BSONElement elt, | ^~~~~~~~~~~~~~~ src/mongo/db/matcher/matcher_type_set.cpp:84:74: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 84 | auto valueAsInt = MatchExpressionParser::parseIntegerElementToInt(elt); | ^ src/mongo/db/matcher/matcher_type_set.cpp: In static member function 'static mongo::StatusWith mongo::MatcherTypeSet::parse(mongo::BSONElement, mongo::StringMap&)': src/mongo/db/matcher/matcher_type_set.cpp:123:28: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 123 | StatusWith MatcherTypeSet::parse(BSONElement elt, | ^~~~~~~~~~~~~~ src/mongo/db/matcher/matcher_type_set.cpp:128:62: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 128 | auto status = parseSingleType(elt, aliasMap, &typeSet); | ^ src/mongo/db/matcher/matcher_type_set.cpp:136:71: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 136 | auto status = parseSingleType(typeArrayElt, aliasMap, &typeSet); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_with_placeholder.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/matcher/expression_with_placeholder.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/get_status_from_command_result.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/get_status_from_command_result.cpp src/mongo/db/pipeline/accumulation_statement.cpp: In static member function 'static mongo::AccumulationStatement mongo::AccumulationStatement::parseAccumulationStatement(const boost::intrusive_ptr&, const mongo::BSONElement&, const mongo::VariablesParseState&)': src/mongo/db/pipeline/accumulation_statement.cpp:102:37: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 102 | Expression::parseOperand(expCtx, specElem, vps), | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tztrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tztrans.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/expression_with_placeholder.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/user_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/user_set.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/expression_with_placeholder.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/repair_database_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/repair_database_interface.cpp ar rcsTD build/opt/mongo/rpc/libcommand_status.a build/opt/mongo/rpc/get_status_from_command_result.o build/opt/mongo/rpc/write_concern_error_detail.o Skipping ranlib for thin archive build/opt/mongo/rpc/libcommand_status.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/dbhelpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/dbhelpers.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/service_context.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/service_context.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/expression_with_placeholder.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libmongohasher.a build/opt/mongo/db/hasher.o Skipping ranlib for thin archive build/opt/mongo/db/libmongohasher.a /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/free_mon/free_mon_commands_gen.h --output build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp src/mongo/db/free_mon/free_mon_commands.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_commands.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/service_context.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/service_context.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/service_context.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/service_context.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/dbhelpers.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/dbhelpers.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/dbhelpers.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/dbhelpers.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_commands.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_commands.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_commands.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_commands.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_commands.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/service_context.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbt_data.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrecog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csrecog.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/service_entry_point_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/service_entry_point_common.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/free_mon/free_mon_commands.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/dbhelpers.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/option_description.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/option_description.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authorization_session_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authorization_session_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/controller.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/controller.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/debugger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/debugger.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/curramt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/curramt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/log_component.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/log_component.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_sum.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_sum.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_sum.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_sum.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/server_options_server_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/server_options_server_helpers.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authz_session_external_state_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authz_session_external_state_d.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulator.h:35, from src/mongo/db/pipeline/accumulator_sum.cpp:36: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = boost::intrusive_ptr; _Functor = boost::intrusive_ptr (*)(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&); _ArgTypes = {const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&}]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ In file included from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_sum.cpp:36: src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/server_status.cpp In file included from src/mongo/platform/decimal128.h:41, from src/mongo/platform/endian.h:40, from src/mongo/base/data_range.h:40, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/jsobj.h:49, from src/mongo/bson/mutable/element.h:37, from src/mongo/db/auth/privilege.h:35, from src/mongo/db/commands.h:41, from src/mongo/db/service_entry_point_common.h:34, from src/mongo/db/service_entry_point_common.cpp:34: src/mongo/db/service_entry_point_common.cpp: In function 'void mongo::{anonymous}::execCommandDatabase(mongo::OperationContext*, mongo::Command*, const mongo::OpMsgRequest&, mongo::rpc::ReplyBuilderInterface*, const mongo::ServiceEntryPointCommon::Hooks&)': src/mongo/db/service_entry_point_common.cpp:832:57: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 832 | uassertStatusOK(QueryRequest::parseMaxTimeMS(cmdOptionMaxTimeMSField)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/transport/session.cpp ar rcsTD build/opt/mongo/db/libservice_entry_point_common.a build/opt/mongo/db/service_entry_point_common.o Skipping ranlib for thin archive build/opt/mongo/db/libservice_entry_point_common.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/dur_journal_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/dur_journal_writer.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/crypto/sha1_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/crypto/sha1_block.cpp ar rcsTD build/opt/mongo/db/libserver_options_servers.a build/opt/mongo/db/server_options_server_helpers.o Skipping ranlib for thin archive build/opt/mongo/db/libserver_options_servers.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/batch_write_exec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/write_ops/batch_write_exec.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/user_document_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/user_document_parser.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/sleep_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/sleep_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/sleep_command.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/sleep_command.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/commands/libserver_status.a build/opt/mongo/db/commands/server_status.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libserver_status.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/error_codes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc build/opt/mongo/base/error_codes.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/sleep_command.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/sleep_command.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/field_path.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/field_path.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/task_runner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/task_runner.cpp ar rcsTD build/opt/mongo/db/auth/libuser_document_parser.a build/opt/mongo/db/auth/user_document_parser.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libuser_document_parser.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/stacktrace_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/stacktrace_posix.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/sleep_command.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/mongod_options_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/db/mongod_options_init.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/dbcommands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/dbcommands.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/profile_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/profile_common.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bson_validate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/bson_validate.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/stack_locator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/platform/stack_locator.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/buddhcal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/buddhcal.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/config_server_catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/config_server_catalog_cache_loader.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/profile_common.h:34, from src/mongo/db/commands/profile_common.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/profile_common.h:34, from src/mongo/db/commands/profile_common.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands.cpp:57: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands.cpp:57: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/bson/bson_validate.cpp: In function 'mongo::Status mongo::{anonymous}::makeError(mongo::StringData, mongo::BSONElement, mongo::StringData)': src/mongo/bson/bson_validate.cpp:55:22: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 55 | Status NOINLINE_DECL makeError(StringData baseMsg, BSONElement idElem, StringData elemName) { | ^~~~~~~~~ src/mongo/bson/bson_validate.cpp: In function 'mongo::Status mongo::validateBSON(const char*, uint64_t, mongo::BSONVersion)': src/mongo/bson/bson_validate.cpp:336:98: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 336 | return makeError("bson size is larger than buffer size", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:336:98: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:214:62: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 214 | return makeError("invalid bson", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:214:62: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:97:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | return makeError("no end of c-string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:97:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:234:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 234 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:234:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:239:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 239 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:239:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:245:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 245 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:245:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:247:76: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 247 | return makeError("invalid boolean value", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:247:76: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:255:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 255 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:255:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:260:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 260 | return makeError("Invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:260:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:117:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 117 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:117:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:121:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 121 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:121:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:129:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 129 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:129:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:133:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 133 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:133:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:136:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 136 | return makeError("not null terminated string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:136:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:268:74: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 268 | return makeError("invalid bson length", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:268:74: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:97:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | return makeError("no end of c-string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:97:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:97:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 97 | return makeError("no end of c-string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:97:69: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:117:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 117 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:117:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:121:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 121 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:121:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:129:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 129 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:129:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:133:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 133 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:133:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:136:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 136 | return makeError("not null terminated string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:136:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:293:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 293 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:293:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:295:75: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 295 | return makeError("invalid size in bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:295:75: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:297:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 297 | return makeError("invalid bson", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:297:67: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:309:68: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 309 | return makeError("invalid bson type", idElem, *elemName); | ^ src/mongo/bson/bson_validate.cpp:309:68: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:371:88: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 371 | "bson length doesn't match what we found", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:371:88: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:391:90: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 391 | return makeError("invalid bson CodeWScope size", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:391:90: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:117:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 117 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:117:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:121:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 121 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:121:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:129:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 129 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:129:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:133:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 133 | return makeError("invalid bson", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:133:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:136:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 136 | return makeError("not null terminated string", _idElem, elemName); | ^ src/mongo/bson/bson_validate.cpp:136:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:403:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 403 | StringData()); | ^ src/mongo/bson/bson_validate.cpp:403:50: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_validate.cpp:407:81: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 407 | return makeError("unnested CodeWScope", idElem, StringData()); | ^ src/mongo/bson/bson_validate.cpp:407:81: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/profile_common.h:34, from src/mongo/db/commands/profile_common.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands.cpp:57: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/profile_common.h:34, from src/mongo/db/commands/profile_common.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/profile_common.h:34, from src/mongo/db/commands/profile_common.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands.cpp:57: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/smpdtfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/smpdtfmt.cpp src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/limit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/limit.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_query_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_query_parser.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/profile_common.h:34, from src/mongo/db/commands/profile_common.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/simple_string_data_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/simple_string_data_comparator.cpp ar rcsTD build/opt/mongo/db/commands/libprofile_common.a build/opt/mongo/db/commands/profile_common.o build/opt/mongo/db/commands/profile_gen.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libprofile_common.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/collection_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/collection_options.cpp ar rcsTD build/opt/mongo/s/query/libcluster_client_cursor.a build/opt/mongo/s/query/cluster_client_cursor_impl.o Skipping ranlib for thin archive build/opt/mongo/s/query/libcluster_client_cursor.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/feature_compatibility_version_command_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/feature_compatibility_version_command_parser.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/feature_compatibility_version_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/feature_compatibility_version_parser.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/dbcommands.cpp:57: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/catalog/collection_options.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/catalog/collection_options.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/catalog/collection_options.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/catalog/collection_options.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/bson_extract_optime.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/bson_extract_optime.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/simple_bsonelement_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/simple_bsonelement_comparator.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_session_cache.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/catalog/collection_options.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/feature_compatibility_version_command_parser.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/bson/simple_bsonelement_comparator.cpp:33: src/mongo/bson/simple_bsonelement_comparator.h: In member function 'virtual void mongo::SimpleBSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/simple_bsonelement_comparator.h:52:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 52 | hashCombineBSONElement(seed, toHash, ComparisonRules::kConsiderFieldName, nullptr); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/distinct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/distinct.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/catalog/collection_options.h:38, from src/mongo/db/catalog/collection_options.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {long long int}; _Tp = long long int; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/commands/libfeature_compatibility_parsers.a build/opt/mongo/db/commands/feature_compatibility_version_parser.o build/opt/mongo/db/commands/feature_compatibility_version_command_parser.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libfeature_compatibility_parsers.a ar rcsTD build/opt/mongo/db/auth/libauth_rolename.a build/opt/mongo/db/auth/role_name.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauth_rolename.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/sharding_catalog_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/sharding_catalog_client.cpp src/mongo/db/catalog/collection_options.cpp: In member function 'mongo::Status mongo::CollectionOptions::parse(const mongo::BSONObj&, mongo::CollectionOptions::ParseKind)': src/mongo/db/catalog/collection_options.cpp:138:47: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 138 | auto res = CollectionUUID::parse(e); | ^ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/catalog/collection_options.h:38, from src/mongo/db/catalog/collection_options.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/liblogical_session_cache.a build/opt/mongo/db/logical_session_cache.o build/opt/mongo/db/logical_session_cache_stats_gen.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_cache.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/async_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/async_client.cpp ar rcsTD build/opt/mongo/db/catalog/libcollection_options.a build/opt/mongo/db/catalog/collection_options.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcollection_options.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/move_primary_source_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/move_primary_source_manager.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/distinct.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/distinct.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/s/catalog/libsharding_catalog_client.a build/opt/mongo/s/catalog/sharding_catalog_client.o Skipping ranlib for thin archive build/opt/mongo/s/catalog/libsharding_catalog_client.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/startup_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/startup_options.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/distinct.cpp:43: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/distinct.cpp:43: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/move_primary_source_manager.h:34, from src/mongo/db/s/move_primary_source_manager.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/move_primary_source_manager.h:34, from src/mongo/db/s/move_primary_source_manager.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/move_primary_source_manager.h:34, from src/mongo/db/s/move_primary_source_manager.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/move_primary_source_manager.h:34, from src/mongo/db/s/move_primary_source_manager.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_state_recovery.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_state_recovery.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_state_recovery.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_state_recovery.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/distinct.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_state_recovery.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_state_recovery.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/client/libasync_client.a build/opt/mongo/client/async_client.o src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/client/libasync_client.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/fetcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/fetcher.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/s/database_sharding_state.h:34, from src/mongo/db/s/move_primary_source_manager.h:34, from src/mongo/db/s/move_primary_source_manager.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/client/fetcher.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/client/fetcher.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/client/fetcher.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/client/fetcher.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/multi_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/multi_iterator.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_state_recovery.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/collection_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/collection_scan.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_iterator.h:36, from src/mongo/db/exec/multi_iterator.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_iterator.h:36, from src/mongo/db/exec/multi_iterator.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/client/fetcher.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_iterator.h:36, from src/mongo/db/exec/multi_iterator.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_iterator.h:36, from src/mongo/db/exec/multi_iterator.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/exec/collection_scan.h:37, from src/mongo/db/exec/collection_scan.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/exec/collection_scan.h:37, from src/mongo/db/exec/collection_scan.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/exec/collection_scan.h:37, from src/mongo/db/exec/collection_scan.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/collection_scan.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/explain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/explain.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/plan_yield_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/plan_yield_policy.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/query/plan_yield_policy.h:33, from src/mongo/db/query/plan_yield_policy.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/query/explain.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/query/plan_yield_policy.h:33, from src/mongo/db/query/plan_yield_policy.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/query/explain.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_iterator.h:36, from src/mongo/db/exec/multi_iterator.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/query/explain.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/query/plan_yield_policy.h:33, from src/mongo/db/query/plan_yield_policy.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_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 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/query/plan_yield_policy.h:33, from src/mongo/db/query/plan_yield_policy.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/query/explain.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/merge_sort.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/merge_sort.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/collection_scan.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/get_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/get_executor.cpp In file included from src/mongo/db/matcher/matchable.h:38, from src/mongo/db/matcher/expression.h:41, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/exec/collection_scan.h:37, from src/mongo/db/exec/collection_scan.cpp:33: src/mongo/db/matcher/path.h: In member function 'virtual mongo::ElementIterator* mongo::WorkingSetMatchableDocument::allocateIterator(const mongo::ElementPath*) const': src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/path.h: In member function 'mongo::PlanStage::StageState mongo::CollectionScan::returnIfMatches(mongo::WorkingSetMember*, mongo::WorkingSetID, mongo::WorkingSetID*)': src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/query/plan_yield_policy.h:33, from src/mongo/db/query/plan_yield_policy.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/query/explain.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/skip.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/skip.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/sort_key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/sort_key_generator.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/delete_request.h:38, from src/mongo/db/query/get_executor.h:31, from src/mongo/db/query/get_executor.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/delete_request.h:38, from src/mongo/db/query/get_executor.h:31, from src/mongo/db/query/get_executor.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/delete_request.h:38, from src/mongo/db/query/get_executor.h:31, from src/mongo/db/query/get_executor.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/delete_request.h:38, from src/mongo/db/query/get_executor.h:31, from src/mongo/db/query/get_executor.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/ensure_sorted.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/ensure_sorted.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort_key_generator.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort_key_generator.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort_key_generator.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort_key_generator.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/update_result.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/update_result.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/queued_data_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/queued_data_stage.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/index_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/index_iterator.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort_key_generator.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/delete_request.h:38, from src/mongo/db/query/get_executor.h:31, from src/mongo/db/query/get_executor.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/plan_ranker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/plan_ranker.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/index_iterator.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/index_iterator.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/index_iterator.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/index_iterator.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/update.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_ranker.h:41, from src/mongo/db/query/plan_ranker.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_ranker.h:41, from src/mongo/db/query/plan_ranker.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_ranker.h:41, from src/mongo/db/query/plan_ranker.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/update.h:34, from src/mongo/db/exec/update.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_ranker.h:41, from src/mongo/db/query/plan_ranker.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/update.h:34, from src/mongo/db/exec/update.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/update.h:34, from src/mongo/db/exec/update.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/update.h:34, from src/mongo/db/exec/update.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/index_iterator.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_source_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_source_cursor.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_ranker.h:41, from src/mongo/db/query/plan_ranker.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/query/plan_ranker.cpp:38: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const double&}; _Tp = double; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {std::pair}; _Tp = std::pair; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:62, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/db/query/plan_ranker.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tempbuf.h: In constructor 'std::_Temporary_buffer<_ForwardIterator, _Tp>::_Temporary_buffer(_ForwardIterator, std::_Temporary_buffer<_ForwardIterator, _Tp>::size_type) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Tp = std::pair]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tempbuf.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 243 | _Temporary_buffer<_ForwardIterator, _Tp>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/sort.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/sort.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/db/query/plan_ranker.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:61, from src/mongo/db/query/plan_ranker.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val&, const std::pair&)>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/db/query/plan_ranker.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Val_comp_iter&, const std::pair&)>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2038 | __upper_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::_V2::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1328 | __rotate(_RandomAccessIterator __first, | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2471 | __merge_without_buffer(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2496 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2497 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2505 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2506 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2512 | std::__merge_without_buffer(__first, __first_cut, __new_middle, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2513 | __len11, __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2514 | std::__merge_without_buffer(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2515 | __len1 - __len11, __len2 - __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2755 | __inplace_stable_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2760:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2760 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2764:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2764 | std::__inplace_stable_sort(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2765:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2765 | std::__inplace_stable_sort(__middle, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2766 | std::__merge_without_buffer(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2767 | __middle - __first, | ~~~~~~~~~~~~~~~~~~~ 2768 | __last - __middle, | ~~~~~~~~~~~~~~~~~~ 2769 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_BidirectionalIterator1 std::__rotate_adaptive(_BidirectionalIterator1, _BidirectionalIterator1, _BidirectionalIterator1, _Distance, _Distance, _BidirectionalIterator2, _Distance) [with _BidirectionalIterator1 = __gnu_cxx::__normal_iterator*, std::vector > >; _BidirectionalIterator2 = std::pair*; _Distance = int]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2372 | __rotate_adaptive(_BidirectionalIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_adaptive(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Distance = int; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2410 | __merge_adaptive(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2440 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2441 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2449 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2450 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2455 | = std::__rotate_adaptive(__first_cut, __middle, __second_cut, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2456 | __len1 - __len11, __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2457 | __buffer_size); | ~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2458 | std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2459 | __len22, __buffer, __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2460 | std::__merge_adaptive(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2461 | __len1 - __len11, | ~~~~~~~~~~~~~~~~~ 2462 | __len2 - __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2463 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _OutputIterator = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::pair*; _OutputIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_with_buffer(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2699 | __merge_sort_with_buffer(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2689 | std::__insertion_sort(__first, __first + __chunk_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__stable_sort_adaptive(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Distance, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector > >; _Pointer = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter&, const std::pair&)>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2726 | __stable_sort_adaptive(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2735:31: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2735 | std::__stable_sort_adaptive(__first, __middle, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2736 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2737:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2737 | std::__stable_sort_adaptive(__middle, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2738 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2742:33: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2742 | std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2743:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2743 | std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 2745 | std::__merge_adaptive(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2746 | _Distance(__middle - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2747 | _Distance(__last - __middle), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2748 | __buffer, __buffer_size, | ~~~~~~~~~~~~~~~~~~~~~~~~ 2749 | __comp); | ~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/query/plan_ranker.cpp:38: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In static member function 'static size_t mongo::PlanRanker::pickBestPlan(const std::vector&, mongo::PlanRankingDecision*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/db/query/plan_ranker.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 4995 | _TmpBuf __buf(__first, std::distance(__first, __last)); | ^~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/query/plan_ranker.cpp:38: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/pipeline/document_source_cursor.h:35, from src/mongo/db/pipeline/document_source_cursor.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/pipeline/document_source_cursor.h:35, from src/mongo/db/pipeline/document_source_cursor.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/write_stage_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/write_stage_common.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/update.h:34, from src/mongo/db/exec/update.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/pipeline/document_source_cursor.h:35, from src/mongo/db/pipeline/document_source_cursor.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/pipeline/document_source_cursor.h:35, from src/mongo/db/pipeline/document_source_cursor.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/write_stage_common.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/write_stage_common.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/write_stage_common.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_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:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_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:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/write_stage_common.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/document_source_cursor.cpp: In member function 'virtual mongo::DocumentSource::GetNextResult mongo::DocumentSourceCursor::getNext()': src/mongo/db/pipeline/document_source_cursor.cpp:69:21: warning: redundant move in return statement [-Wredundant-move] 69 | return std::move(out); | ~~~~~~~~~^~~~~ src/mongo/db/pipeline/document_source_cursor.cpp:69:21: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/keep_mutations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/keep_mutations.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/keep_mutations.h:36, from src/mongo/db/exec/keep_mutations.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/keep_mutations.h:36, from src/mongo/db/exec/keep_mutations.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/pipeline/document_source_cursor.h:35, from src/mongo/db/pipeline/document_source_cursor.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/matchable.h:38, from src/mongo/db/matcher/expression.h:41, from src/mongo/db/exec/keep_mutations.h:36, from src/mongo/db/exec/keep_mutations.cpp:31: src/mongo/db/matcher/path.h: In member function 'virtual mongo::ElementIterator* mongo::WorkingSetMatchableDocument::allocateIterator(const mongo::ElementPath*) const': src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/eof.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/eof.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/sort.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/write_stage_common.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/working_set_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/working_set_common.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/exec/sort.h:34, from src/mongo/db/exec/sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::SortStage::SortableDataItem&}; _Tp = mongo::SortStage::SortableDataItem; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/exec/sort.h:34, from src/mongo/db/exec/sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::SortStage::addToBuffer(const mongo::SortStage::SortableDataItem&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/db/jsobj.h:48, from src/mongo/db/exec/plan_stats.h:40, from src/mongo/db/exec/plan_stage.h:36, from src/mongo/db/exec/sort.h:36, from src/mongo/db/exec/sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Val_comp_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/plan_stage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/plan_stage.cpp /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1879:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1879 | __final_insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1879:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/db/jsobj.h:48, from src/mongo/db/exec/plan_stats.h:40, from src/mongo/db/exec/plan_stage.h:36, from src/mongo/db/exec/sort.h:36, from src/mongo/db/exec/sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = mongo::SortStage::SortableDataItem; _Compare = __gnu_cxx::__ops::_Iter_comp_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:326:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 326 | __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:326:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/db/jsobj.h:48, from src/mongo/db/exec/plan_stats.h:40, from src/mongo/db/exec/plan_stage.h:36, from src/mongo/db/exec/sort.h:36, from src/mongo/db/exec/sort.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1671:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1671 | std::__make_heap(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::SortStage::sortBuffer()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/distinct_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/distinct_scan.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/working_set_common.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/working_set_common.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/parsed_update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/parsed_update.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/working_set_common.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/working_set_common.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/ops/parsed_update.h:35, from src/mongo/db/ops/parsed_update.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/ops/parsed_update.h:35, from src/mongo/db/ops/parsed_update.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/delete.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/delete.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/distinct_scan.h:37, from src/mongo/db/exec/distinct_scan.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/distinct_scan.h:37, from src/mongo/db/exec/distinct_scan.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/distinct_scan.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/distinct_scan.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/parsed_update.h:37, from src/mongo/db/ops/parsed_update.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/parsed_update.h:37, from src/mongo/db/ops/parsed_update.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/delete.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/delete.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/delete.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/delete.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/working_set_common.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/distinct_scan.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/parsed_update.h:37, from src/mongo/db/ops/parsed_update.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/parsed_delete.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/parsed_delete.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/query_yield.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/query_yield.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/parsed_delete.h:35, from src/mongo/db/ops/parsed_delete.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/parsed_delete.h:35, from src/mongo/db/ops/parsed_delete.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/plan_executor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/plan_executor.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/parsed_delete.h:35, from src/mongo/db/ops/parsed_delete.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/delete.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/parsed_delete.h:35, from src/mongo/db/ops/parsed_delete.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/query_yield.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/query_yield.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/query_yield.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/plan_executor.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/plan_executor.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/query_yield.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/plan_executor.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/idhack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/idhack.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/plan_executor.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/idhack.h:35, from src/mongo/db/exec/idhack.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/idhack.h:35, from src/mongo/db/exec/idhack.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/idhack.h:35, from src/mongo/db/exec/idhack.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/idhack.h:35, from src/mongo/db/exec/idhack.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/query/query_yield.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/query/plan_executor.cpp: In static member function 'static mongo::StatusWith > mongo::PlanExecutor::make(mongo::OperationContext*, std::unique_ptr, std::unique_ptr, std::unique_ptr, std::unique_ptr, const mongo::Collection*, mongo::NamespaceString, mongo::PlanExecutor::YieldPolicy)': src/mongo/db/query/plan_executor.cpp:216:21: warning: redundant move in return statement [-Wredundant-move] 216 | return std::move(exec); | ~~~~~~~~~^~~~~~ src/mongo/db/query/plan_executor.cpp:216:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/parsed_delete.h:35, from src/mongo/db/ops/parsed_delete.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/cursor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/cursor_manager.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/query/plan_executor.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/or.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/or.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/cursor_manager.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/cursor_manager.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/cursor_manager.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/cursor_manager.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/idhack.h:35, from src/mongo/db/exec/idhack.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/or.h:35, from src/mongo/db/exec/or.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/or.h:35, from src/mongo/db/exec/or.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/matchable.h:38, from src/mongo/db/matcher/expression.h:41, from src/mongo/db/exec/or.h:35, from src/mongo/db/exec/or.cpp:31: src/mongo/db/matcher/path.h: In member function 'virtual mongo::ElementIterator* mongo::WorkingSetMatchableDocument::allocateIterator(const mongo::ElementPath*) const': src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/shard_filter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/shard_filter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/cached_plan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/cached_plan.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/multi_plan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/multi_plan.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/exec/cached_plan.h:39, from src/mongo/db/exec/cached_plan.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/exec/cached_plan.h:39, from src/mongo/db/exec/cached_plan.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/exec/cached_plan.h:39, from src/mongo/db/exec/cached_plan.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_plan.h:34, from src/mongo/db/exec/multi_plan.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_plan.h:34, from src/mongo/db/exec/multi_plan.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/filter.h:34, from src/mongo/db/exec/shard_filter.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/filter.h:34, from src/mongo/db/exec/shard_filter.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_plan.h:34, from src/mongo/db/exec/multi_plan.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/exec/cached_plan.h:39, from src/mongo/db/exec/cached_plan.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_plan.h:34, from src/mongo/db/exec/multi_plan.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/cursor_manager.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/matchable.h:38, from src/mongo/s/shard_key_pattern.h:40, from src/mongo/s/catalog/type_chunk.h:41, from src/mongo/s/chunk.h:33, from src/mongo/s/chunk_manager.h:41, from src/mongo/db/s/collection_metadata.h:34, from src/mongo/db/s/scoped_collection_metadata.h:33, from src/mongo/db/exec/shard_filter.h:34, from src/mongo/db/exec/shard_filter.cpp:35: src/mongo/db/matcher/path.h: In member function 'virtual mongo::ElementIterator* mongo::WorkingSetMatchableDocument::allocateIterator(const mongo::ElementPath*) const': src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/and_sorted.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/and_sorted.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/catalog/util/partitioned.h:39, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/cursor_manager.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {}; _Tp = mongo::GenericCursor; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/and_sorted.h:38, from src/mongo/db/exec/and_sorted.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/and_sorted.h:38, from src/mongo/db/exec/and_sorted.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/unordered_map:46, from src/mongo/stdx/unordered_map.h:36, from src/mongo/base/string_data_comparator_interface.h:34, from src/mongo/bson/bsonelement.h:44, from src/mongo/db/jsobj.h:49, from src/mongo/client/index_spec.h:37, from src/mongo/client/dbclientinterface.h:37, from src/mongo/db/clientcursor.h:35, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/cursor_manager.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::erase(std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::const_iterator) [with _Key = long long int; _Value = std::pair; _Alloc = std::allocator >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to; _H1 = std::hash; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:1849:5: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, false>'} changed in GCC 7.1 1849 | _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1850 | _H1, _H2, _Hash, _RehashPolicy, _Traits>:: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'std::size_t mongo::CursorManager::timeoutCursors(mongo::OperationContext*, mongo::Date_t)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, false>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/exec/cached_plan.h:39, from src/mongo/db/exec/cached_plan.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/catalog/util/partitioned.h:39, from src/mongo/db/cursor_manager.h:35, from src/mongo/db/cursor_manager.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::CursorManager::appendActiveCursors(std::vector*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/unordered_map:46, from src/mongo/stdx/unordered_map.h:36, from src/mongo/base/string_data_comparator_interface.h:34, from src/mongo/bson/bsonelement.h:44, from src/mongo/db/jsobj.h:49, from src/mongo/client/index_spec.h:37, from src/mongo/client/dbclientinterface.h:37, from src/mongo/db/clientcursor.h:35, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/cursor_manager.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'void mongo::CursorManager::invalidateAll(mongo::OperationContext*, bool, const string&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, false>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, std::hash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, false>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/clientcursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/clientcursor.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/multi_plan.h:34, from src/mongo/db/exec/multi_plan.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/projection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/projection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/clientcursor.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/clientcursor.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/projection_exec.h:35, from src/mongo/db/exec/projection.h:35, from src/mongo/db/exec/projection.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/clientcursor.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/projection_exec.h:35, from src/mongo/db/exec/projection.h:35, from src/mongo/db/exec/projection.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/clientcursor.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/exec/projection_exec.h:36, from src/mongo/db/exec/projection.h:35, from src/mongo/db/exec/projection.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/exec/projection_exec.h:36, from src/mongo/db/exec/projection.h:35, from src/mongo/db/exec/projection.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/pipeline_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/pipeline_d.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/fetch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/fetch.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/fetch.h:37, from src/mongo/db/exec/fetch.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/fetch.h:37, from src/mongo/db/exec/fetch.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/fetch.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/exec/projection_exec.h:36, from src/mongo/db/exec/projection.h:35, from src/mongo/db/exec/projection.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/fetch.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/mongo_process_interface.h:44, from src/mongo/db/pipeline/mongo_process_common.h:36, from src/mongo/db/pipeline/pipeline_d.h:40, from src/mongo/db/pipeline/pipeline_d.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/mongo_process_interface.h:44, from src/mongo/db/pipeline/mongo_process_common.h:36, from src/mongo/db/pipeline/pipeline_d.h:40, from src/mongo/db/pipeline/pipeline_d.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/clientcursor.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/pipeline/pipeline_d.h:41, from src/mongo/db/pipeline/pipeline_d.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/pipeline/pipeline_d.h:41, from src/mongo/db/pipeline/pipeline_d.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/group.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/group.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/index_scan.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/index_scan.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/fetch.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/pipeline_d.cpp: In static member function 'static mongo::StatusWith > mongo::PipelineD::prepareExecutor(mongo::OperationContext*, mongo::Collection*, const mongo::NamespaceString&, mongo::Pipeline*, const boost::intrusive_ptr&, bool, const boost::intrusive_ptr&, const mongo::DepsTracker&, const mongo::BSONObj&, const mongo::AggregationRequest*, mongo::BSONObj*, mongo::BSONObj*)': src/mongo/db/pipeline/pipeline_d.cpp:452:29: warning: redundant move in return statement [-Wredundant-move] 452 | return std::move(exec); | ~~~~~~~~~^~~~~~ src/mongo/db/pipeline/pipeline_d.cpp:452:29: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/index_scan.h:37, from src/mongo/db/exec/index_scan.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/index_scan.h:37, from src/mongo/db/exec/index_scan.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/group.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/group.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/group.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/index_scan.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/group.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/index_scan.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/matchable.h:38, from src/mongo/db/matcher/expression.h:41, from src/mongo/db/exec/fetch.h:37, from src/mongo/db/exec/fetch.cpp:33: src/mongo/db/matcher/path.h: In member function 'virtual mongo::ElementIterator* mongo::WorkingSetMatchableDocument::allocateIterator(const mongo::ElementPath*) const': src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/find.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/find.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/pipeline/pipeline_d.h:41, from src/mongo/db/pipeline/pipeline_d.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/exec/index_scan.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/exec/group.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/find.h:35, from src/mongo/db/query/find.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/find.h:35, from src/mongo/db/query/find.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/find.h:35, from src/mongo/db/query/find.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/matchable.h:38, from src/mongo/db/matcher/expression.h:41, from src/mongo/db/exec/index_scan.h:37, from src/mongo/db/exec/index_scan.cpp:35: src/mongo/db/matcher/path.h: In member function 'virtual mongo::ElementIterator* mongo::IndexKeyMatchableDocument::allocateIterator(const mongo::ElementPath*) const': src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 152 | _element.reset(e, BSONElement()); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.h:152:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/find.h:35, from src/mongo/db/query/find.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/and_hash.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/and_hash.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/projection_exec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/projection_exec.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/and_hash.h:37, from src/mongo/db/exec/and_hash.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/and_hash.h:37, from src/mongo/db/exec/and_hash.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/action_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/auth/action_type.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/projection_exec.h:35, from src/mongo/db/exec/projection_exec.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/exec/projection_exec.h:35, from src/mongo/db/exec/projection_exec.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/exec/projection_exec.h:36, from src/mongo/db/exec/projection_exec.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/unordered_map:46, from src/mongo/stdx/unordered_map.h:36, from src/mongo/base/string_data_comparator_interface.h:34, from src/mongo/bson/bsonelement.h:44, from src/mongo/db/jsobj.h:49, from src/mongo/db/exec/plan_stats.h:40, from src/mongo/db/exec/plan_stage.h:36, from src/mongo/db/exec/and_hash.h:35, from src/mongo/db/exec/and_hash.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::erase(std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::const_iterator) [with _Key = mongo::RecordId; _Value = std::pair; _Alloc = std::allocator >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to; _H1 = mongo::RecordId::Hasher; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:1849:5: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, mongo::RecordId::Hasher, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 1849 | _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1850 | _H1, _H2, _Hash, _RehashPolicy, _Traits>:: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/exec/projection_exec.h:36, from src/mongo/db/exec/projection_exec.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'virtual void mongo::AndHashStage::doInvalidate(mongo::OperationContext*, const mongo::RecordId&, mongo::InvalidationType)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, mongo::RecordId::Hasher, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'mongo::PlanStage::StageState mongo::AndHashStage::hashOtherChildren(mongo::WorkingSetID*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, mongo::RecordId::Hasher, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'virtual mongo::PlanStage::StageState mongo::AndHashStage::doWork(mongo::WorkingSetID*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, mongo::RecordId::Hasher, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/system_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/system_index.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/find.h:35, from src/mongo/db/query/find.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libdocument_validation.a build/opt/mongo/db/catalog/document_validation.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libdocument_validation.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/hebrwcal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/hebrwcal.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/batched_upsert_detail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/write_ops/batched_upsert_detail.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/system_index.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/system_index.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/exec/projection_exec.h:36, from src/mongo/db/exec/projection_exec.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/libstemmer/libstemmer_utf8.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/libstemmer/libstemmer_utf8.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_danish.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_danish.c In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/system_index.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/system_index.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/runtime/api.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/runtime/api.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_italian.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_italian.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_russian.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_russian.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_portuguese.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_portuguese.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_norwegian.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_norwegian.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_swedish.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_swedish.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_hungarian.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_hungarian.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_german.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_german.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_romanian.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_romanian.c ar rcsTD build/opt/mongo/db/libquery_exec.a build/opt/mongo/db/clientcursor.o build/opt/mongo/db/cursor_manager.o build/opt/mongo/db/exec/and_hash.o build/opt/mongo/db/exec/and_sorted.o build/opt/mongo/db/exec/cached_plan.o build/opt/mongo/db/exec/change_stream_proxy.o build/opt/mongo/db/exec/collection_scan.o build/opt/mongo/db/exec/count.o build/opt/mongo/db/exec/count_scan.o build/opt/mongo/db/exec/delete.o build/opt/mongo/db/exec/distinct_scan.o build/opt/mongo/db/exec/ensure_sorted.o build/opt/mongo/db/exec/eof.o build/opt/mongo/db/exec/fetch.o build/opt/mongo/db/exec/geo_near.o build/opt/mongo/db/exec/group.o build/opt/mongo/db/exec/idhack.o build/opt/mongo/db/exec/index_iterator.o build/opt/mongo/db/exec/index_scan.o build/opt/mongo/db/exec/keep_mutations.o build/opt/mongo/db/exec/limit.o build/opt/mongo/db/exec/merge_sort.o build/opt/mongo/db/exec/multi_iterator.o build/opt/mongo/db/exec/multi_plan.o build/opt/mongo/db/exec/near.o build/opt/mongo/db/exec/oplogstart.o build/opt/mongo/db/exec/or.o build/opt/mongo/db/exec/pipeline_proxy.o build/opt/mongo/db/exec/plan_stage.o build/opt/mongo/db/exec/projection.o build/opt/mongo/db/exec/projection_exec.o build/opt/mongo/db/exec/queued_data_stage.o build/opt/mongo/db/exec/shard_filter.o build/opt/mongo/db/exec/skip.o build/opt/mongo/db/exec/sort.o build/opt/mongo/db/exec/sort_key_generator.o build/opt/mongo/db/exec/subplan.o build/opt/mongo/db/exec/text.o build/opt/mongo/db/exec/text_match.o build/opt/mongo/db/exec/text_or.o build/opt/mongo/db/exec/update.o build/opt/mongo/db/exec/working_set_common.o build/opt/mongo/db/exec/write_stage_common.o build/opt/mongo/db/ops/parsed_delete.o build/opt/mongo/db/ops/parsed_update.o build/opt/mongo/db/ops/update_lifecycle_impl.o build/opt/mongo/db/ops/update_result.o build/opt/mongo/db/query/explain.o build/opt/mongo/db/query/find.o build/opt/mongo/db/pipeline/document_source_cursor.o build/opt/mongo/db/pipeline/pipeline_d.o build/opt/mongo/db/query/get_executor.o build/opt/mongo/db/query/internal_plans.o build/opt/mongo/db/query/plan_executor.o build/opt/mongo/db/query/plan_ranker.o build/opt/mongo/db/query/plan_yield_policy.o build/opt/mongo/db/query/query_yield.o build/opt/mongo/db/query/stage_builder.o Skipping ranlib for thin archive build/opt/mongo/db/libquery_exec.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_finnish.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_finnish.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_english.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_english.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_french.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fno-strict-overflow -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/libstemmer_c/src_c/stem_UTF_8_french.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/durable_mapped_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/durable_mapped_file.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/sasl_scram_server_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/sasl_scram_server_conversation.cpp ar rcsTD build/opt/third_party/libstemmer_c/libstemmer.a build/opt/third_party/libstemmer_c/runtime/api.o build/opt/third_party/libstemmer_c/libstemmer/libstemmer_utf8.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_dutch.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_german.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_porter.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_spanish.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_english.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_hungarian.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_portuguese.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_swedish.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_finnish.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_italian.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_romanian.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_turkish.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_danish.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_french.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_norwegian.o build/opt/third_party/libstemmer_c/src_c/stem_UTF_8_russian.o Skipping ranlib for thin archive build/opt/third_party/libstemmer_c/libstemmer.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/move_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/move_chunk_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/system_index.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_scram_server_conversation.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_scram_server_conversation.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_scram_server_conversation.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/shard_server_catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/shard_server_catalog_cache_loader.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_scram_server_conversation.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libsystem_index.a build/opt/mongo/db/system_index.o Skipping ranlib for thin archive build/opt/mongo/db/libsystem_index.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/transaction_reaper.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/transaction_reaper.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_scram_server_conversation.h:34, from src/mongo/db/auth/sasl_scram_server_conversation.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/move_chunk_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/transaction_reaper.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/transaction_reaper.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/transaction_reaper.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/transaction_reaper.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/util/uuid.h:40, from src/mongo/db/namespace_string.h:43, from src/mongo/db/client.h:43, from src/mongo/db/operation_context_group.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_erase(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::iterator) [with _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:184:5: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 184 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:184:5: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/mutable/element.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/mutable/element.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/memory:65, from src/mongo/base/error_extra_info.h:33, from src/mongo/base/status.h:37, from src/mongo/base/status_with.h:39, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context_group.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_uninitialized.h: In static member function 'static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = __gnu_cxx::__normal_iterator >; _ForwardIterator = mongo::ChunkType*; bool _TrivialValueTypes = false]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_uninitialized.h:76:9: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 76 | __uninit_copy(_InputIterator __first, _InputIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_uninitialized.h:76:9: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_uninitialized.h: In member function 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_uninitialized.h:134:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 131 | return std::__uninitialized_copy<__is_trivial(_ValueType1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 132 | && __is_trivial(_ValueType2) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 133 | && __assignable>:: | ~~~~~~~~~~~~~~~~~~ 134 | __uninit_copy(__first, __last, __result); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/util/uuid.h:40, from src/mongo/db/namespace_string.h:43, from src/mongo/db/client.h:43, from src/mongo/db/operation_context_group.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/memory:65, from src/mongo/base/error_extra_info.h:33, from src/mongo/base/status.h:37, from src/mongo/base/status_with.h:39, from src/mongo/db/namespace_string.h:38, from src/mongo/db/client.h:43, from src/mongo/db/operation_context_group.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_uninitialized.h:134:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 131 | return std::__uninitialized_copy<__is_trivial(_ValueType1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 132 | && __is_trivial(_ValueType2) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 133 | && __assignable>:: | ~~~~~~~~~~~~~~~~~~ 134 | __uninit_copy(__first, __last, __result); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_uninitialized.h:134:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 131 | return std::__uninitialized_copy<__is_trivial(_ValueType1) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 132 | && __is_trivial(_ValueType2) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 133 | && __assignable>:: | ~~~~~~~~~~~~~~~~~~ 134 | __uninit_copy(__first, __last, __result); | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonelement.h:39, from src/mongo/util/uuid.h:40, from src/mongo/db/namespace_string.h:43, from src/mongo/db/client.h:43, from src/mongo/db/operation_context_group.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.h:33, from src/mongo/db/s/shard_server_catalog_cache_loader.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::CollectionAndChangedChunks mongo::ShardServerCatalogCacheLoader::CollAndChunkTaskList::getEnqueuedMetadataForTerm(long long int) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'std::pair mongo::ShardServerCatalogCacheLoader::_getEnqueuedMetadata(const mongo::NamespaceString&, const mongo::ChunkVersion&, long long int)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1458:71: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1458 | return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); | ^ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::StatusWith mongo::ShardServerCatalogCacheLoader::_getLoaderMetadata(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::ChunkVersion&, long long int)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1458:71: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1458 | return _M_erase(__beg + (__first - __cbeg), __beg + (__last - __cbeg)); | ^ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/read_concern_args.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/read_concern_args.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index_rebuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index_rebuilder.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/transaction_reaper.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/ssl_stream.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/ssl_stream.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_rebuilder.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/repl/libread_concern_args.a build/opt/mongo/db/repl/read_concern_args.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libread_concern_args.a In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_rebuilder.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_leaf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_leaf.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_rebuilder.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index_legacy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index_legacy.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_rebuilder.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libtransaction_reaper.a build/opt/mongo/db/transaction_reaper.o Skipping ranlib for thin archive build/opt/mongo/db/libtransaction_reaper.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_session_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_session_id.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_leaf.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_leaf.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_leaf.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/expression_leaf.cpp:44: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_legacy.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_legacy.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_legacy.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_legacy.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/start_chunk_clone_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/start_chunk_clone_request.cpp src/mongo/db/matcher/expression_leaf.cpp: In member function 'virtual std::unique_ptr mongo::InMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.cpp:386:21: warning: redundant move in return statement [-Wredundant-move] 386 | return std::move(next); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_leaf.cpp:386:21: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.cpp: In lambda function: src/mongo/db/matcher/expression_leaf.cpp:550:29: warning: redundant move in return statement [-Wredundant-move] 550 | return std::move(simplifiedExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.cpp:550:29: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.cpp:560:29: warning: redundant move in return statement [-Wredundant-move] 560 | return std::move(simplifiedExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.cpp:560:29: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/expression_leaf.cpp:44: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_rebuilder.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/s/libmigration_types.a build/opt/mongo/db/s/migration_session_id.o build/opt/mongo/db/s/start_chunk_clone_request.o Skipping ranlib for thin archive build/opt/mongo/db/s/libmigration_types.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/dependencies.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/dependencies.cpp In file included from src/mongo/db/matcher/expression_leaf.h:33, from src/mongo/db/matcher/expression_leaf.cpp:33: src/mongo/bson/bsonelement_comparator.h: In member function 'virtual void mongo::BSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/bsonelement_comparator.h:69:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 69 | hashCombineBSONElement(seed, toHash, _rules, _stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index_legacy.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/dependencies.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/dependencies.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtitvfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dtitvfmt.cpp ar rcsTD build/opt/mongo/db/libop_observer_impl.a build/opt/mongo/db/op_observer_impl.o Skipping ranlib for thin archive build/opt/mongo/db/libop_observer_impl.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_basic_tokenizer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_basic_tokenizer.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/base/string_data_comparator_interface.h:36, from src/mongo/bson/bsonelement_comparator.h:33, from src/mongo/db/matcher/expression_leaf.h:33, from src/mongo/db/matcher/expression_leaf.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator > >; _Distance = int; _Tp = mongo::BSONElement; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::LessThan>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::LessThan>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:342:22: note: parameter passing for argument of type '_ValueType' {aka 'mongo::BSONElement'} changed in GCC 7.1 342 | std::__adjust_heap(__first, __parent, __len, _GLIBCXX_MOVE(__value), | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 343 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:342:22: note: parameter passing for argument of type '_ValueType' {aka 'mongo::BSONElement'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:253:25: note: parameter passing for argument of type '_ValueType' {aka 'mongo::BSONElement'} changed in GCC 7.1 253 | std::__adjust_heap(__first, _DistanceType(0), | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 254 | _DistanceType(__last - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 255 | _GLIBCXX_MOVE(__value), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:253:25: note: parameter passing for argument of type '_ValueType' {aka 'mongo::BSONElement'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/sort_key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/sort_key_generator.cpp /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator > >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::LessThan>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:253:25: note: parameter passing for argument of type '_ValueType' {aka 'mongo::BSONElement'} changed in GCC 7.1 253 | std::__adjust_heap(__first, _DistanceType(0), | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 254 | _DistanceType(__last - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 255 | _GLIBCXX_MOVE(__value), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:253:25: note: parameter passing for argument of type '_ValueType' {aka 'mongo::BSONElement'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/pipeline/dependencies.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/cluster_find.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/cluster_find.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/establish_cursors.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/establish_cursors.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/async_results_merger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/async_results_merger.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/s/query/cluster_find.h:37, from src/mongo/s/query/cluster_find.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/s/query/cluster_find.h:37, from src/mongo/s/query/cluster_find.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:41, from src/mongo/s/query/establish_cursors.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:41, from src/mongo/s/query/establish_cursors.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/s/query/cluster_find.h:37, from src/mongo/s/query/cluster_find.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:41, from src/mongo/s/query/establish_cursors.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/s/query/cluster_find.h:37, from src/mongo/s/query/cluster_find.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:41, from src/mongo/s/query/establish_cursors.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/granularity_rounder_powers_of_two.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/async_results_merger.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/async_results_merger.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/async_results_merger.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/async_results_merger.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/granularity_rounder.h:37, from src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/granularity_rounder.h:37, from src/mongo/db/pipeline/granularity_rounder_powers_of_two.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/s/query/cluster_find.cpp: In function 'mongo::StatusWith > mongo::{anonymous}::transformQueryForShards(const mongo::QueryRequest&, bool)': src/mongo/s/query/cluster_find.cpp:170:21: warning: redundant move in return statement [-Wredundant-move] 170 | return std::move(newQR); | ~~~~~~~~~^~~~~~~ src/mongo/s/query/cluster_find.cpp:170:21: note: remove 'std::move' call src/mongo/s/query/async_results_merger.cpp: In static member function 'static mongo::StatusWith mongo::AsyncResultsMerger::_parseCursorResponse(const mongo::BSONObj&, const mongo::AsyncResultsMerger::RemoteCursorData&)': src/mongo/s/query/async_results_merger.cpp:500:21: warning: redundant move in return statement [-Wredundant-move] 500 | return std::move(cursorResponse); | ~~~~~~~~~^~~~~~~~~~~~~~~~ src/mongo/s/query/async_results_merger.cpp:500:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/establish_cursors.h:41, from src/mongo/s/query/establish_cursors.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/s/query/establish_cursors.h:34, from src/mongo/s/query/establish_cursors.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::RemoteCursor}; _Tp = mongo::RemoteCursor; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from src/mongo/s/query/cluster_find.h:37, from src/mongo/s/query/cluster_find.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::RemoteCursor}; _Tp = mongo::RemoteCursor; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/query/cursor_response.h:38, from build/opt/mongo/s/query/async_results_merger_params_gen.h:23, from src/mongo/s/query/async_results_merger.h:42, from src/mongo/s/query/async_results_merger.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/python src/mongo/base/generate_error_codes.py src/mongo/base/error_codes.err src/mongo/shell/error_codes.tpl.js=build/opt/mongo/shell/error_codes.js /home/buildroot/autobuild/instance-1/output-1/host/bin/python site_scons/site_tools/jstoh.py build/opt/mongo/shell/mongo.cpp src/mongo/shell/assert.js src/mongo/shell/bulk_api.js src/mongo/shell/collection.js src/mongo/shell/crud_api.js src/mongo/shell/db.js build/opt/mongo/shell/error_codes.js src/mongo/shell/explainable.js src/mongo/shell/explain_query.js src/mongo/shell/mongo.js src/mongo/shell/mr.js src/mongo/shell/query.js src/mongo/shell/session.js src/mongo/shell/types.js src/mongo/shell/utils_auth.js src/mongo/shell/utils.js src/mongo/shell/utils_sh.js /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/shell/mongo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc build/opt/mongo/shell/mongo.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/base64.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/base64.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/data_type.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/data_type.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/unclean_shutdown.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/unclean_shutdown.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/s/query/async_results_merger.h:34, from src/mongo/s/query/async_results_merger.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::HostAndPort&, const mongo::NamespaceString&, long long int}; _Tp = mongo::AsyncResultsMerger::RemoteCursorData; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {const mongo::HostAndPort&, const mongo::NamespaceString&, long long int}; _Tp = mongo::AsyncResultsMerger::RemoteCursorData; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/shell/libmongojs.a build/opt/mongo/shell/mongo.o Skipping ranlib for thin archive build/opt/mongo/shell/libmongojs.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tzgnames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tzgnames.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/sasl_plain_server_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/sasl_plain_server_conversation.cpp ar rcsTD build/opt/mongo/s/query/libasync_results_merger.a build/opt/mongo/s/query/async_results_merger.o build/opt/mongo/s/query/establish_cursors.o build/opt/mongo/s/query/async_results_merger_params_gen.o Skipping ranlib for thin archive build/opt/mongo/s/query/libasync_results_merger.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authz_session_external_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authz_session_external_state.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authorization_manager_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authorization_manager_impl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authz_manager_external_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authz_manager_external_state.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_plain_server_conversation.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_plain_server_conversation.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_plain_server_conversation.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_plain_server_conversation.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/do_txn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/do_txn.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/transport_layer_asio.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/transport/transport_layer_asio.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_policies.h:35, from src/mongo/db/auth/sasl_plain_server_conversation.h:33, from src/mongo/db/auth/sasl_plain_server_conversation.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/do_txn.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/do_txn.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/do_txn.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/do_txn.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/applier_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/applier_helpers.cpp src/mongo/transport/transport_layer_asio.cpp: In member function 'virtual mongo::transport::BatonHandle mongo::transport::TransportLayerASIO::makeBaton(mongo::OperationContext*)': src/mongo/transport/transport_layer_asio.cpp:900:21: warning: redundant move in return statement [-Wredundant-move] 900 | return std::move(baton); | ~~~~~~~~~^~~~~~~ src/mongo/transport/transport_layer_asio.cpp:900:21: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libauth_impl_internal.a build/opt/mongo/db/auth/authorization_manager_impl.o build/opt/mongo/db/auth/authorization_session_impl.o build/opt/mongo/db/auth/authz_manager_external_state.o build/opt/mongo/db/auth/authz_session_external_state.o build/opt/mongo/db/auth/user_set.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauth_impl_internal.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationsettings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationsettings.cpp In file included from src/mongo/transport/session.h:40, from src/mongo/transport/transport_layer.h:37, from src/mongo/transport/transport_layer_asio.h:43, from src/mongo/transport/transport_layer_asio.cpp:35: src/mongo/util/future.h: In instantiation of 'mongo::StatusWith mongo::future_details::statusCall(Func&&, Args&& ...) [with Func = mongo::transport::TransportLayerASIO::asyncConnect(mongo::HostAndPort, mongo::transport::ConnectSSLMode, const ReactorHandle&, mongo::Milliseconds)::::&; Args = {mongo::future_details::FakeVoid}; RawResult = mongo::Status; = void; = void; = void]': src/mongo/util/future.h:842:71: required from 'mongo::future_details::Future mongo::future_details::Future::then(Func&&) && [with Func = mongo::transport::TransportLayerASIO::asyncConnect(mongo::HostAndPort, mongo::transport::ConnectSSLMode, const ReactorHandle&, mongo::Milliseconds)::::; Result = void; = void; T = mongo::future_details::FakeVoid]' src/mongo/util/future.h:1248:62: required from 'auto mongo::future_details::Future::then(Func&&) && [with Func = mongo::transport::TransportLayerASIO::asyncConnect(mongo::HostAndPort, mongo::transport::ConnectSSLMode, const ReactorHandle&, mongo::Milliseconds)::::]' src/mongo/transport/transport_layer_asio.cpp:615:63: required from here src/mongo/util/future.h:177:32: warning: redundant move in return statement [-Wredundant-move] 177 | return std::move(status); | ^ src/mongo/util/future.h:177:32: note: remove 'std::move' call src/mongo/util/future.h: In instantiation of 'mongo::StatusWith mongo::future_details::statusCall(Func&&, Args&& ...) [with Func = mongo::transport::TransportLayerASIO::ASIOSession::sendHTTPResponse(const BatonHandle&)::&; Args = {mongo::Status}; RawResult = mongo::Status; = void; = void; = void]': src/mongo/util/future.h:916:55: required from 'mongo::future_details::Future mongo::future_details::Future::onError(Func&&) && [with Func = mongo::transport::TransportLayerASIO::ASIOSession::sendHTTPResponse(const BatonHandle&)::; Result = mongo::future_details::FakeVoid; = void; T = mongo::future_details::FakeVoid]' src/mongo/util/future.h:1253:65: required from 'mongo::future_details::Future mongo::future_details::Future::onError(Func&&) && [with Func = mongo::transport::TransportLayerASIO::ASIOSession::sendHTTPResponse(const BatonHandle&)::]' src/mongo/transport/session_asio.h:669:18: required from here src/mongo/util/future.h:177:32: warning: redundant move in return statement [-Wredundant-move] src/mongo/util/future.h:177:32: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/fail_point_server_parameter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/fail_point_server_parameter.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/applier_helpers.h:37, from src/mongo/db/repl/applier_helpers.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/applier_helpers.h:37, from src/mongo/db/repl/applier_helpers.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/applier_helpers.h:37, from src/mongo/db/repl/applier_helpers.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/applier_helpers.h:37, from src/mongo/db/repl/applier_helpers.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_stemmer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include src/third_party/shim_stemmer.cpp ar rcsTD build/opt/mongo/db/commands/libcurrent_op_common.a build/opt/mongo/db/commands/current_op_common.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libcurrent_op_common.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/service_executor_reserved.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/transport/service_executor_reserved.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/do_txn.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/message_compressor_metrics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/transport/message_compressor_metrics.cpp src/mongo/db/repl/do_txn.cpp: In function 'mongo::Status mongo::doTxn(mongo::OperationContext*, const string&, const mongo::BSONObj&, mongo::BSONObjBuilder*)': src/mongo/db/repl/do_txn.cpp:143:54: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 143 | auto uuidStatus = UUID::parse(opObj["ui"]); | ^ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/applier_helpers.h:37, from src/mongo/db/repl/applier_helpers.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/startup_warnings_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/startup_warnings_common.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/bson/bson_comparator_interface_base.h:35, from src/mongo/bson/bsonelement.h:45, from src/mongo/db/jsobj.h:49, from src/mongo/db/server_options.h:33, from src/mongo/transport/transport_layer_asio.h:38, from src/mongo/transport/transport_layer_asio.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator) [with _Key = mongo::transport::TransportLayerASIO::BatonASIO::Timer; _Val = mongo::transport::TransportLayerASIO::BatonASIO::Timer; _KeyOfValue = std::_Identity; _Compare = mongo::transport::TransportLayerASIO::BatonASIO::Timer::LessThan; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2504:5: note: parameter passing for argument of type 'std::_Rb_tree, mongo::transport::TransportLayerASIO::BatonASIO::Timer::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 2504 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/connection_string_connect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/connection_string_connect.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/options_parser_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/options_parser_init.cpp ar rcsTD build/opt/mongo/db/libstartup_warnings_common.a build/opt/mongo/db/startup_warnings_common.o Skipping ranlib for thin archive build/opt/mongo/db/libstartup_warnings_common.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/kill_sessions_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/kill_sessions_local.cpp /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual bool mongo::transport::TransportLayerASIO::BatonASIO::run(mongo::OperationContext*, boost::optional)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1208:2: note: parameter passing for argument of type 'std::_Rb_tree, mongo::transport::TransportLayerASIO::BatonASIO::Timer::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1208 | _M_erase_aux(__position); | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual bool mongo::transport::TransportLayerASIO::BatonASIO::cancelTimer(const mongo::transport::ReactorTimer&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1208:2: note: parameter passing for argument of type 'std::_Rb_tree, mongo::transport::TransportLayerASIO::BatonASIO::Timer::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1208 | _M_erase_aux(__position); | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In static member function 'static void std::_Function_handler::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Functor = mongo::transport::TransportLayerASIO::BatonASIO::_safeExecute(std::unique_lock, Callback&&) [with Callback = mongo::transport::TransportLayerASIO::BatonASIO::cancelTimer(const mongo::transport::ReactorTimer&)::]::; _ArgTypes = {}]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1208:2: note: parameter passing for argument of type 'std::_Rb_tree, mongo::transport::TransportLayerASIO::BatonASIO::Timer::LessThan, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1208 | _M_erase_aux(__position); | ^~~~~~~~~~~~ src/mongo/client/connection_string_connect.cpp: In member function 'std::unique_ptr mongo::ConnectionString::connect(mongo::StringData, std::string&, double, const mongo::MongoURI*) const': src/mongo/client/connection_string_connect.cpp:72:33: warning: redundant move in return statement [-Wredundant-move] 72 | return std::move(c); | ~~~~~~~~~^~~ src/mongo/client/connection_string_connect.cpp:72:33: note: remove 'std::move' call src/mongo/client/connection_string_connect.cpp:85:29: warning: redundant move in return statement [-Wredundant-move] 85 | return std::move(set); | ~~~~~~~~~^~~~~ src/mongo/client/connection_string_connect.cpp:85:29: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/query/cluster_query_knobs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/query/cluster_query_knobs.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/engine_none.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/scripting/engine_none.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/server_options.h:33, from src/mongo/transport/transport_layer_asio.h:38, from src/mongo/transport/transport_layer_asio.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const asio::detail::timer_queue > >::heap_entry&}; _Tp = asio::detail::timer_queue > >::heap_entry; _Alloc = std::allocator > >::heap_entry>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector > >::heap_entry, std::allocator > >::heap_entry> >::iterator' {aka '__gnu_cxx::__normal_iterator > >::heap_entry*, std::vector > >::heap_entry, std::allocator > >::heap_entry> > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/server_options.h:33, from src/mongo/transport/transport_layer_asio.h:38, from src/mongo/transport/transport_layer_asio.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void asio::detail::epoll_reactor::schedule_timer(asio::detail::timer_queue&, const typename Time_Traits::time_type&, typename asio::detail::timer_queue::per_timer_data&, asio::detail::wait_op*) [with Time_Traits = asio::detail::chrono_time_traits >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >::heap_entry*, std::vector > >::heap_entry, std::allocator > >::heap_entry> > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/kill_sessions_local.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/kill_sessions_local.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/server_options.h:33, from src/mongo/transport/transport_layer_asio.h:38, from src/mongo/transport/transport_layer_asio.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const asio::detail::timer_queue > >::heap_entry&}; _Tp = asio::detail::timer_queue > >::heap_entry; _Alloc = std::allocator > >::heap_entry>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector > >::heap_entry, std::allocator > >::heap_entry> >::iterator' {aka '__gnu_cxx::__normal_iterator > >::heap_entry*, std::vector > >::heap_entry, std::allocator > >::heap_entry> > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector > >::heap_entry, std::allocator > >::heap_entry> >::iterator' {aka '__gnu_cxx::__normal_iterator > >::heap_entry*, std::vector > >::heap_entry, std::allocator > >::heap_entry> > >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/server_options.h:33, from src/mongo/transport/transport_layer_asio.h:38, from src/mongo/transport/transport_layer_asio.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void asio::detail::epoll_reactor::schedule_timer(asio::detail::timer_queue&, const typename Time_Traits::time_type&, typename asio::detail::timer_queue::per_timer_data&, asio::detail::wait_op*) [with Time_Traits = asio::detail::chrono_time_traits >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > >::heap_entry*, std::vector > >::heap_entry, std::allocator > >::heap_entry> > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/kill_sessions_local.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/kill_sessions_local.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/query/libcluster_query.a build/opt/mongo/s/query/cluster_find.o build/opt/mongo/s/query/cluster_query_knobs.o Skipping ranlib for thin archive build/opt/mongo/s/query/libcluster_query.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/util/coding/varint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -Isrc/third_party/gflags-2.0/src -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/util/coding/varint.cc /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/read_only_catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/read_only_catalog_cache_loader.cpp ar rcsTD build/opt/mongo/scripting/libscripting_none.a build/opt/mongo/scripting/engine_none.o Skipping ranlib for thin archive build/opt/mongo/scripting/libscripting_none.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/implicit_create_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/implicit_create_collection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/implicit_create_collection.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/implicit_create_collection.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/cursor_manager.h:36, from src/mongo/db/kill_sessions_local.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/implicit_create_collection.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/implicit_create_collection.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_statistics.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_statistics.cpp ar rcsTD build/opt/mongo/db/libkill_sessions_local.a build/opt/mongo/db/kill_sessions_local.o Skipping ranlib for thin archive build/opt/mongo/db/libkill_sessions_local.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/shard_server_op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/shard_server_op_observer.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/shard_metadata_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/shard_metadata_util.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/active_move_primaries_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/active_move_primaries_registry.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/shard_server_op_observer.h:34, from src/mongo/db/s/shard_server_op_observer.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/shard_server_op_observer.h:34, from src/mongo/db/s/shard_server_op_observer.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/shard_server_op_observer.h:34, from src/mongo/db/s/shard_server_op_observer.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/shard_server_op_observer.h:34, from src/mongo/db/s/shard_server_op_observer.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/implicit_create_collection.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/collection_range_deleter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/collection_range_deleter.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/s/shard_metadata_util.h:34, from src/mongo/db/s/shard_metadata_util.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::ChunkType}; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/collection_sharding_state_factory_shard.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/collection_sharding_state_factory_shard.cpp /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'mongo::StatusWith > mongo::shardmetadatautil::readShardChunks(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::BSONObj&, const mongo::BSONObj&, boost::optional, const mongo::OID&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_range_deleter.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_range_deleter.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_range_deleter.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_range_deleter.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/shard_server_op_observer.h:34, from src/mongo/db/s/shard_server_op_observer.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/split_vector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/split_vector.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/active_migrations_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/active_migrations_registry.cpp src/mongo/db/s/shard_server_op_observer.cpp: In member function 'virtual void mongo::ShardServerOpObserver::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/s/shard_server_op_observer.cpp:204:6: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 204 | void ShardServerOpObserver::onInserts(OperationContext* opCtx, | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/db/s/shard_server_op_observer.cpp:204:6: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config_server_op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config_server_op_observer.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_vector.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_vector.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_vector.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_vector.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_migrations_registry.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_migrations_registry.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_migrations_registry.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_migrations_registry.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/config_server_op_observer.h:34, from src/mongo/db/s/config_server_op_observer.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/config_server_op_observer.h:34, from src/mongo/db/s/config_server_op_observer.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/collection_range_deleter.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/config_server_op_observer.h:34, from src/mongo/db/s/config_server_op_observer.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/config_server_op_observer.h:34, from src/mongo/db/s/config_server_op_observer.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_vector.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/active_migrations_registry.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/s/config_server_op_observer.h:34, from src/mongo/db/s/config_server_op_observer.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_initialization_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_initialization_mongod.cpp In file included from src/mongo/db/s/config_server_op_observer.cpp:35: src/mongo/db/s/config_server_op_observer.h: In member function 'virtual void mongo::ConfigServerOpObserver::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/s/config_server_op_observer.h:55:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 55 | void onInserts(OperationContext* opCtx, | ^~~~~~~~~ src/mongo/db/s/config_server_op_observer.h:55:10: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/scoped_operation_completion_sharding_actions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_chunk_cloner_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_chunk_cloner_source.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/chunk_move_write_concern_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/chunk_move_write_concern_options.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_destination_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_destination_manager.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_initialization_mongod.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_initialization_mongod.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_initialization_mongod.cpp:43: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_initialization_mongod.cpp:43: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/session_catalog_migration_destination.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/session_catalog_migration_destination.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/s/migration_destination_manager.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/s/migration_destination_manager.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/s/migration_destination_manager.cpp:45: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/s/scoped_operation_completion_sharding_actions.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/s/migration_destination_manager.cpp:45: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/s/session_catalog_migration_destination.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/s/session_catalog_migration_destination.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/s/session_catalog_migration_destination.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/s/session_catalog_migration_destination.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/namespace_metadata_change_notifications.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/namespace_metadata_change_notifications.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/sharding_initialization_mongod.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/shard_identity_rollback_notifier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/shard_identity_rollback_notifier.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/s/session_catalog_migration_destination.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/s/migration_destination_manager.cpp:45: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/session_catalog_migration_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/session_catalog_migration_source.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/split_chunk.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/split_chunk.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/shard_filtering_metadata_refresh.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/shard_filtering_metadata_refresh.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_chunk.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/session_catalog_migration_source.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_chunk.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/session_catalog_migration_source.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_chunk.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/session_catalog_migration_source.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_chunk.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/session_catalog_migration_source.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_source_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_source_manager.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/session_catalog_migration_source.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/split_chunk.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shard_filtering_metadata_refresh.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_source_manager.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_source_manager.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_source_manager.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_source_manager.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/client/connection_string.h:36, from src/mongo/client/dbclientinterface.h:36, from src/mongo/client/dbclientcursor.h:38, from src/mongo/db/s/session_catalog_migration_source.h:37, from src/mongo/db/s/session_catalog_migration_source.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::repl::OplogEntry&}; _Tp = mongo::repl::OplogEntry; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/client/connection_string.h:36, from src/mongo/client/dbclientinterface.h:36, from src/mongo/client/dbclientcursor.h:38, from src/mongo/db/s/session_catalog_migration_source.h:37, from src/mongo/db/s/session_catalog_migration_source.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'bool mongo::SessionCatalogMigrationSource::_handleWriteHistory(mongo::WithLock, mongo::OperationContext*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/logstream_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/logstream_builder.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/signal_handlers_synchronous.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/signal_handlers_synchronous.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/initializer_dependency_graph.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/initializer_dependency_graph.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/rotatable_file_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/rotatable_file_manager.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/shared_library_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/platform/shared_library_posix.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/shim.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/shim.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/duration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/duration.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/log_component_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/log_component_settings.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_source_manager.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsonmisc.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/bsonmisc.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/data_type_terminated.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/data_type_terminated.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/timestamp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/timestamp.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/decimal128.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/platform/decimal128.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/text.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/text.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsontypes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/bsontypes.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/strcasestr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/platform/strcasestr.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/stacktrace.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/stacktrace.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/startup_test.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/startup_test.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsonobjbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/bsonobjbuilder.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/error_extra_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/error_extra_info.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/oid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/oid.cpp ar rcsTD build/opt/mongo/db/s/libsharding_runtime_d.a build/opt/mongo/db/s/active_migrations_registry.o build/opt/mongo/db/s/active_move_primaries_registry.o build/opt/mongo/db/s/active_shard_collection_registry.o build/opt/mongo/db/s/chunk_move_write_concern_options.o build/opt/mongo/db/s/chunk_splitter.o build/opt/mongo/db/s/collection_range_deleter.o build/opt/mongo/db/s/collection_sharding_runtime.o build/opt/mongo/db/s/collection_sharding_state_factory_shard.o build/opt/mongo/db/s/config_server_op_observer.o build/opt/mongo/db/s/implicit_create_collection.o build/opt/mongo/db/s/metadata_manager.o build/opt/mongo/db/s/migration_chunk_cloner_source_legacy.o build/opt/mongo/db/s/migration_chunk_cloner_source.o build/opt/mongo/db/s/migration_destination_manager.o build/opt/mongo/db/s/migration_source_manager.o build/opt/mongo/db/s/migration_util.o build/opt/mongo/db/s/move_primary_source_manager.o build/opt/mongo/db/s/move_timing_helper.o build/opt/mongo/db/s/namespace_metadata_change_notifications.o build/opt/mongo/db/s/read_only_catalog_cache_loader.o build/opt/mongo/db/s/scoped_operation_completion_sharding_actions.o build/opt/mongo/db/s/session_catalog_migration_destination.o build/opt/mongo/db/s/session_catalog_migration_source.o build/opt/mongo/db/s/shard_filtering_metadata_refresh.o build/opt/mongo/db/s/shard_identity_rollback_notifier.o build/opt/mongo/db/s/shard_metadata_util.o build/opt/mongo/db/s/shard_server_catalog_cache_loader.o build/opt/mongo/db/s/shard_server_op_observer.o build/opt/mongo/db/s/sharding_config_optime_gossip.o build/opt/mongo/db/s/sharding_initialization_mongod.o build/opt/mongo/db/s/sharding_state_recovery.o build/opt/mongo/db/s/sharding_statistics.o build/opt/mongo/db/s/split_chunk.o build/opt/mongo/db/s/split_vector.o Skipping ranlib for thin archive build/opt/mongo/db/s/libsharding_runtime_d.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/simple_bsonobj_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/simple_bsonobj_comparator.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/message_event_utf8_encoder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/message_event_utf8_encoder.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/log.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/log.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bson_comparator_interface_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/bson_comparator_interface_base.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/concurrency/idle_thread_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/concurrency/idle_thread_block.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/stack_locator_linux.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/platform/stack_locator_linux.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bsonobj.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/bsonobj.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/system_clock_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/system_clock_source.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/string_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/string_data.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/random.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/platform/random.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/initializer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/initializer.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/assert_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/assert_util.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/posix_fadvise.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/platform/posix_fadvise.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/shared_library.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/platform/shared_library.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/rotatable_file_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/rotatable_file_writer.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/version.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/hex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/hex.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/log_severity.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/log_severity.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/validate_locale.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/validate_locale.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/time_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/time_support.cpp src/mongo/bson/bson_comparator_interface_base.cpp: In static member function 'static void mongo::BSONComparatorInterfaceBase::hashCombineBSONElement(size_t&, mongo::BSONElement, mongo::BSONComparatorInterfaceBase::ComparisonRulesSet, const mongo::StringData::ComparatorInterface*) [with T = mongo::BSONObj]': src/mongo/bson/bson_comparator_interface_base.cpp:64:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 64 | void BSONComparatorInterfaceBase::hashCombineBSONElement( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/bson/bson_comparator_interface_base.cpp:64:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/bson/bson_comparator_interface_base.cpp: In static member function 'static void mongo::BSONComparatorInterfaceBase::hashCombineBSONObj(size_t&, const mongo::BSONObj&, mongo::BSONComparatorInterfaceBase::ComparisonRulesSet, const mongo::StringData::ComparatorInterface*) [with T = mongo::BSONObj]': src/mongo/bson/bson_comparator_interface_base.cpp:54:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 54 | hashCombineBSONElement(seed, iter.next(), rules, stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/bson/bson_comparator_interface_base.cpp:58:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 58 | hashCombineBSONElement(seed, elem, rules, stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/bson/bson_comparator_interface_base.cpp: In static member function 'static void mongo::BSONComparatorInterfaceBase::hashCombineBSONElement(size_t&, mongo::BSONElement, mongo::BSONComparatorInterfaceBase::ComparisonRulesSet, const mongo::StringData::ComparatorInterface*) [with T = mongo::BSONElement]': src/mongo/bson/bson_comparator_interface_base.cpp:64:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 64 | void BSONComparatorInterfaceBase::hashCombineBSONElement( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/bson/bson_comparator_interface_base.cpp: In static member function 'static void mongo::BSONComparatorInterfaceBase::hashCombineBSONObj(size_t&, const mongo::BSONObj&, mongo::BSONComparatorInterfaceBase::ComparisonRulesSet, const mongo::StringData::ComparatorInterface*) [with T = mongo::BSONElement]': src/mongo/bson/bson_comparator_interface_base.cpp:54:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 54 | hashCombineBSONElement(seed, iter.next(), rules, stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/bson/bson_comparator_interface_base.cpp:58:35: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 58 | hashCombineBSONElement(seed, elem, rules, stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/data_range_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/data_range_cursor.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/init.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/message_log_domain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/message_log_domain.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/log_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/log_manager.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/allocator.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/ramlog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/ramlog.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/exception_filter_win32.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/exception_filter_win32.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/concurrency/thread_name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/concurrency/thread_name.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/uuid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/uuid.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/file.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/parse_number.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/parse_number.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/logger.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/logger.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/exit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/exit.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/data_range.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/data_range.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/platform/process_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/platform/process_id.cpp src/mongo/util/uuid.cpp: In static member function 'static mongo::StatusWith mongo::UUID::parse(mongo::BSONElement)': src/mongo/util/uuid.cpp:55:18: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 55 | StatusWith UUID::parse(BSONElement from) { | ^~~~ src/mongo/util/uuid.cpp: In static member function 'static mongo::UUID mongo::UUID::parse(const mongo::BSONObj&)': src/mongo/util/uuid.cpp:87:42: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 87 | auto res = parse(obj.getField("uuid")); | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/platform_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/platform_init.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/errno_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/util/errno_util.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/json.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/json.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/bson_depth.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/bson_depth.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/make_string_vector.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/make_string_vector.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/matcher.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/bson_collection_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/bson_collection_catalog_entry.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/matcher.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/matcher/matcher.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/matcher.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/matcher.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/storage/bson_collection_catalog_entry.h:36, from src/mongo/db/storage/bson_collection_catalog_entry.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::_M_erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = mongo::BSONCollectionCatalogEntry::IndexMetaData; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:171:5: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 171 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/bson/mutable/document.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/bson/mutable/document.cpp ar rcsTD build/opt/mongo/libbase.a build/opt/mongo/base/data_range.o build/opt/mongo/base/data_range_cursor.o build/opt/mongo/base/data_type.o build/opt/mongo/base/data_type_string_data.o build/opt/mongo/base/data_type_terminated.o build/opt/mongo/base/error_codes.o build/opt/mongo/base/error_extra_info.o build/opt/mongo/base/global_initializer.o build/opt/mongo/base/global_initializer_registerer.o build/opt/mongo/base/init.o build/opt/mongo/base/initializer.o build/opt/mongo/base/initializer_dependency_graph.o build/opt/mongo/base/make_string_vector.o build/opt/mongo/base/parse_number.o build/opt/mongo/base/shim.o build/opt/mongo/base/simple_string_data_comparator.o build/opt/mongo/base/status.o build/opt/mongo/base/string_data.o build/opt/mongo/base/validate_locale.o build/opt/mongo/bson/bson_comparator_interface_base.o build/opt/mongo/bson/bson_depth.o build/opt/mongo/bson/bson_validate.o build/opt/mongo/bson/bsonelement.o build/opt/mongo/bson/bsonmisc.o build/opt/mongo/bson/bsonobj.o build/opt/mongo/bson/bsonobjbuilder.o build/opt/mongo/bson/bsontypes.o build/opt/mongo/bson/json.o build/opt/mongo/bson/oid.o build/opt/mongo/bson/simple_bsonelement_comparator.o build/opt/mongo/bson/simple_bsonobj_comparator.o build/opt/mongo/bson/timestamp.o build/opt/mongo/logger/component_message_log_domain.o build/opt/mongo/logger/console.o build/opt/mongo/logger/log_component.o build/opt/mongo/logger/log_component_settings.o build/opt/mongo/logger/log_manager.o build/opt/mongo/logger/log_severity.o build/opt/mongo/logger/logger.o build/opt/mongo/logger/logstream_builder.o build/opt/mongo/logger/message_event_utf8_encoder.o build/opt/mongo/logger/message_log_domain.o build/opt/mongo/logger/ramlog.o build/opt/mongo/logger/redaction.o build/opt/mongo/logger/rotatable_file_manager.o build/opt/mongo/logger/rotatable_file_writer.o build/opt/mongo/platform/decimal128.o build/opt/mongo/platform/posix_fadvise.o build/opt/mongo/platform/process_id.o build/opt/mongo/platform/random.o build/opt/mongo/platform/shared_library.o build/opt/mongo/platform/shared_library_posix.o build/opt/mongo/platform/stack_locator.o build/opt/mongo/platform/stack_locator_linux.o build/opt/mongo/platform/strcasestr.o build/opt/mongo/platform/strnlen.o build/opt/mongo/util/allocator.o build/opt/mongo/util/assert_util.o build/opt/mongo/util/base64.o build/opt/mongo/util/concurrency/idle_thread_block.o build/opt/mongo/util/concurrency/thread_name.o build/opt/mongo/util/duration.o build/opt/mongo/util/errno_util.o build/opt/mongo/util/exception_filter_win32.o build/opt/mongo/util/exit.o build/opt/mongo/util/file.o build/opt/mongo/util/hex.o build/opt/mongo/util/itoa.o build/opt/mongo/util/log.o build/opt/mongo/util/platform_init.o build/opt/mongo/util/signal_handlers_synchronous.o build/opt/mongo/util/stacktrace.o build/opt/mongo/util/stacktrace_posix.o build/opt/mongo/util/startup_test.o build/opt/mongo/util/stringutils.o build/opt/mongo/util/system_clock_source.o build/opt/mongo/util/system_tick_source.o build/opt/mongo/util/text.o build/opt/mongo/util/time_support.o build/opt/mongo/util/timer.o build/opt/mongo/util/uuid.o build/opt/mongo/util/version.o In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/storage/bson_collection_catalog_entry.h:36, from src/mongo/db/storage/bson_collection_catalog_entry.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'bool mongo::BSONCollectionCatalogEntry::MetaData::eraseIndex(mongo::StringData)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1428:58: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1428 | { return _M_erase(begin() + (__position - cbegin())); } | ^ Skipping ranlib for thin archive build/opt/mongo/libbase.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/command_generic_argument.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/command_generic_argument.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/casetrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/casetrn.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/storage/bson_collection_catalog_entry.h:36, from src/mongo/db/storage/bson_collection_catalog_entry.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::BSONCollectionCatalogEntry::IndexMetaData&}; _Tp = mongo::BSONCollectionCatalogEntry::IndexMetaData; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/sync_tail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/sync_tail.cpp src/mongo/db/storage/bson_collection_catalog_entry.cpp: In member function 'void mongo::BSONCollectionCatalogEntry::MetaData::parse(const mongo::BSONObj&)': src/mongo/db/storage/bson_collection_catalog_entry.cpp:338:65: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 338 | imd.prefix = KVPrefix::fromBSONElement(idx["prefix"]); | ^ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/storage/bson_collection_catalog_entry.h:36, from src/mongo/db/storage/bson_collection_catalog_entry.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/storage/bson_collection_catalog_entry.cpp:346:53: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 346 | prefix = KVPrefix::fromBSONElement(obj["prefix"]); | ^ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/matcher.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_query_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_query_impl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/abstract_async_component.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/abstract_async_component.cpp src/mongo/db/fts/fts_query_impl.cpp: In member function 'virtual std::unique_ptr mongo::fts::FTSQueryImpl::clone() const': src/mongo/db/fts/fts_query_impl.cpp:155:21: warning: redundant move in return statement [-Wredundant-move] 155 | return std::move(clonedQuery); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/db/fts/fts_query_impl.cpp:155:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/sync_tail.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/sync_tail.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/sync_tail.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/bson/mutable/libmutable_bson.a build/opt/mongo/bson/mutable/document.o build/opt/mongo/bson/mutable/element.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/bson/mutable/libmutable_bson.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/find_and_modify.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/find_and_modify.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/sync_tail.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/query/libstore_possible_cursor.a build/opt/mongo/s/query/store_possible_cursor.o Skipping ranlib for thin archive build/opt/mongo/s/query/libstore_possible_cursor.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/single_write_result_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/ops/single_write_result_gen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/command_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/command_request.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/find_and_modify.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/find_and_modify.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/find_and_modify.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/find_and_modify.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/single_write_result_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/single_write_result_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/single_write_result_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/single_write_result_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_engine_lock_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_lock_file.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/sync_tail.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/ops/single_write_result_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_engine_lock_file_posix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_lock_file_posix.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrmbcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csrmbcs.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_time.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_time.cpp In file included from src/mongo/db/matcher/expression_leaf.h:33, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/sync_tail.cpp:35: src/mongo/bson/bsonelement_comparator.h: In member function 'virtual void mongo::BSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/bsonelement_comparator.h:69:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 69 | hashCombineBSONElement(seed, toHash, _rules, _stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonobj.h:40, from src/mongo/db/repl/sync_tail.h:37, from src/mongo/db/repl/sync_tail.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::BSONObj}; _Tp = mongo::repl::OplogEntry; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'bool mongo::repl::SyncTail::tryPopAndWaitForMore(mongo::OperationContext*, mongo::repl::OplogBuffer*, mongo::repl::SyncTail::OpQueue*, const BatchLimits&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::InsertStatement}; _Tp = mongo::InsertStatement; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/find_and_modify.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj.h:46, from src/mongo/db/repl/sync_tail.h:37, from src/mongo/db/repl/sync_tail.cpp:35: src/mongo/db/repl/sync_tail.cpp: In lambda function: src/mongo/db/repl/sync_tail.cpp:300:65: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 300 | return {nss.db().toString(), uassertStatusOK(UUID::parse(ui))}; | ~~~~~~~~~~~^~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_leaf.h:33, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/sync_tail.h:40, from src/mongo/db/repl/sync_tail.cpp:35: src/mongo/bson/bsonelement_comparator.h: In function 'void mongo::repl::{anonymous}::fillWriterVectors(mongo::OperationContext*, mongo::repl::MultiApplier::Operations*, std::vector >*, std::vector >*, mongo::repl::SessionUpdateTracker*)': src/mongo/bson/bsonelement_comparator.h:69:31: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 69 | hashCombineBSONElement(seed, toHash, _rules, _stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dtrule.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonobj.h:40, from src/mongo/db/repl/sync_tail.h:37, from src/mongo/db/repl/sync_tail.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In static member function 'static void std::_Function_handler::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Functor = mongo::repl::{anonymous}::scheduleWritesToOplog(mongo::OperationContext*, mongo::repl::StorageInterface*, mongo::ThreadPool*, const Operations&)::::; _ArgTypes = {}]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/collection.cpp ar rcsTD build/opt/mongo/db/storage/libstorage_engine_lock_file.a build/opt/mongo/db/storage/storage_engine_lock_file.o build/opt/mongo/db/storage/storage_engine_lock_file_posix.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_engine_lock_file.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/async_requests_sender.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/async_requests_sender.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtptngen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dtptngen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/internal_user_auth.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/internal_user_auth.cpp ar rcsTD build/opt/mongo/rpc/liblegacy_reply.a build/opt/mongo/rpc/legacy_reply.o build/opt/mongo/rpc/legacy_reply_builder.o Skipping ranlib for thin archive build/opt/mongo/rpc/liblegacy_reply.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_consistency_markers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_consistency_markers.cpp ar rcsTD build/opt/mongo/db/auth/libinternal_user_auth.a build/opt/mongo/db/auth/internal_user_auth.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libinternal_user_auth.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/scripting/bson_template_evaluator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/scripting/bson_template_evaluator.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/util/coding/coder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -Isrc/third_party/gflags-2.0/src -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/util/coding/coder.cc In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/s/async_requests_sender.h:33, from src/mongo/s/async_requests_sender.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::__find_if(_RandomAccessIterator, _RandomAccessIterator, _Predicate, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Predicate = __gnu_cxx::__ops::_Iter_negate >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:112:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 112 | __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:112:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'bool mongo::AsyncRequestsSender::done()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:171:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 171 | return std::__find_if(__first, __last, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 172 | __gnu_cxx::__ops::__negate(__pred), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 173 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/opt/third_party/s2/util/coding/libcoding.a build/opt/third_party/s2/util/coding/coder.o build/opt/third_party/s2/util/coding/varint.o Skipping ranlib for thin archive build/opt/third_party/s2/util/coding/libcoding.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authorization_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authorization_session.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/s/async_requests_sender.h:34, from src/mongo/s/async_requests_sender.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::ShardId&, const mongo::BSONObj&}; _Tp = mongo::AsyncRequestsSender::RemoteData; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In constructor 'mongo::AsyncRequestsSender::AsyncRequestsSender(mongo::OperationContext*, mongo::executor::TaskExecutor*, mongo::StringData, const std::vector&, const mongo::ReadPreferenceSetting&, mongo::Shard::RetryPolicy)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/scripting/bson_template_evaluator.cpp: In member function 'mongo::BsonTemplateEvaluator::Status mongo::BsonTemplateEvaluator::_evalElem(mongo::BSONElement, mongo::BSONObjBuilder&)': src/mongo/scripting/bson_template_evaluator.cpp:98:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 98 | BsonTemplateEvaluator::Status BsonTemplateEvaluator::_evalElem(const BSONElement in, | ^~~~~~~~~~~~~~~~~~~~~ src/mongo/scripting/bson_template_evaluator.cpp:107:38: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 107 | Status st = _evalElem(element, newBuilder); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/s/async_requests_sender.h:33, from src/mongo/s/async_requests_sender.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'mongo::AsyncRequestsSender::Response mongo::AsyncRequestsSender::next()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:171:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 171 | return std::__find_if(__first, __last, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 172 | __gnu_cxx::__ops::__negate(__pred), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 173 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/scripting/bson_template_evaluator.cpp: In member function 'mongo::BsonTemplateEvaluator::Status mongo::BsonTemplateEvaluator::evaluate(const mongo::BSONObj&, mongo::BSONObjBuilder&)': src/mongo/scripting/bson_template_evaluator.cpp:85:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 85 | Status st = _evalElem(e, builder); | ~~~~~~~~~^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In destructor 'mongo::AsyncRequestsSender::~AsyncRequestsSender()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:171:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 171 | return std::__find_if(__first, __last, | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 172 | __gnu_cxx::__ops::__negate(__pred), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 173 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/scripting/bson_template_evaluator.h:48, from src/mongo/scripting/bson_template_evaluator.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple, std::tuple<>}; _Key = int; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2452:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 2452 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from src/mongo/scripting/bson_template_evaluator.h:48, from src/mongo/scripting/bson_template_evaluator.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In static member function 'static mongo::BsonTemplateEvaluator::Status mongo::BsonTemplateEvaluator::evalSeqInt(mongo::BsonTemplateEvaluator*, const char*, const mongo::BSONObj&, mongo::BSONObjBuilder&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, ar rcsTD build/opt/mongo/s/libasync_requests_sender.a build/opt/mongo/s/async_requests_sender.o Skipping ranlib for thin archive build/opt/mongo/s/libasync_requests_sender.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/value.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/value.cpp ar rcsTD build/opt/mongo/scripting/libbson_template_evaluator.a build/opt/mongo/scripting/bson_template_evaluator.o Skipping ranlib for thin archive build/opt/mongo/scripting/libbson_template_evaluator.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/environment.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/environment.cpp ar rcsTD build/opt/mongo/db/catalog/libcollection.a build/opt/mongo/db/catalog/collection.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcollection.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/startup_option_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/startup_option_init.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/constraints.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/constraints.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/options_parser/option_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/options_parser/option_section.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/regexcmp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/regexcmp.cpp ar rcsTD build/opt/mongo/db/libaudit.a build/opt/mongo/db/audit.o Skipping ranlib for thin archive build/opt/mongo/db/libaudit.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/concurrency/thread_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/concurrency/thread_pool.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/counters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/counters.cpp ar rcsTD build/opt/mongo/util/concurrency/libthread_pool.a build/opt/mongo/util/concurrency/thread_pool.o Skipping ranlib for thin archive build/opt/mongo/util/concurrency/libthread_pool.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/commit_notifier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/commit_notifier.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/remote_command_retry_scheduler.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/remote_command_retry_scheduler.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/write_ops_retryability.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/write_ops_retryability.cpp ar rcsTD build/opt/mongo/db/repl/libreplication_recovery.a build/opt/mongo/db/repl/replication_recovery.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplication_recovery.a ar rcsTD build/opt/mongo/db/libservice_context_d.a build/opt/mongo/db/service_entry_point_mongod.o Skipping ranlib for thin archive build/opt/mongo/db/libservice_context_d.a In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/util/options_parser/option_description.h:33, from src/mongo/util/options_parser/option_section.h:32, from src/mongo/util/options_parser/option_section.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::optionenvironment::OptionDescription&}; _Tp = mongo::optionenvironment::OptionDescription; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/server_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/server_options.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/util/options_parser/option_description.h:33, from src/mongo/util/options_parser/option_section.h:32, from src/mongo/util/options_parser/option_section.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::Status mongo::optionenvironment::OptionSection::getAllOptions(std::vector*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/libserver_options_core.a build/opt/mongo/db/server_options.o Skipping ranlib for thin archive build/opt/mongo/db/libserver_options_core.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationfastlatin.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationfastlatin.cpp ar rcsTD build/opt/mongo/client/libremote_command_retry_scheduler.a build/opt/mongo/client/remote_command_retry_scheduler.o Skipping ranlib for thin archive build/opt/mongo/client/libremote_command_retry_scheduler.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/user_management_commands_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/user_management_commands_common.cpp ar rcsTD build/opt/mongo/util/options_parser/liboptions_parser.a build/opt/mongo/util/options_parser/environment.o build/opt/mongo/util/options_parser/value.o build/opt/mongo/util/options_parser/constraints.o build/opt/mongo/util/options_parser/option_section.o build/opt/mongo/util/options_parser/option_description.o build/opt/mongo/util/options_parser/options_parser.o build/opt/mongo/util/options_parser/startup_option_init.o build/opt/mongo/util/options_parser/startup_options.o Skipping ranlib for thin archive build/opt/mongo/util/options_parser/liboptions_parser.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/vote_requester.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/vote_requester.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_coordinator_impl_heartbeat.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_coordinator_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:50: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:50: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:50: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:50: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/vote_requester.h:34, from src/mongo/db/repl/vote_requester.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::executor::RemoteCommandRequest}; _Tp = mongo::executor::RemoteCommandRequest; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual std::vector mongo::repl::VoteRequester::Algorithm::getRequests() const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_coordinator_impl_elect_v1.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/check_quorum_for_config_change.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/check_quorum_for_config_change.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_heartbeat.cpp:50: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/scatter_gather_algorithm.h:33, from src/mongo/db/repl/check_quorum_for_config_change.h:34, from src/mongo/db/repl/check_quorum_for_config_change.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::executor::RemoteCommandRequest}; _Tp = mongo::executor::RemoteCommandRequest; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual std::vector mongo::repl::QuorumChecker::getRequests() const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/ftdc_server.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_server.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/initial_syncer.h:44, from src/mongo/db/repl/replication_coordinator_impl.h:40, from src/mongo/db/repl/replication_coordinator_impl_elect_v1.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_server.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_server.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_server.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_server.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/ftdc_system_stats_linux.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_system_stats_linux.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/sharedbreakiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/sharedbreakiterator.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/keys_collection_client_direct.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/keys_collection_client_direct.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_month.hpp:18, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_ymd.hpp:16, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_calendar.hpp:17, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/gregorian_types.hpp:19, from src/mongo/util/time_support.h:35, from src/mongo/bson/timestamp.h:36, from src/mongo/db/repl/replication_coordinator_impl.h:38, from src/mongo/db/repl/replication_coordinator_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator) [with _Key = mongo::repl::OpTime; _Val = mongo::repl::OpTime; _KeyOfValue = std::_Identity; _Compare = std::less; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2518:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 2518 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2518:5: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'void mongo::repl::ReplicationCoordinatorImpl::_cleanupStableOpTimeCandidates(std::set*, mongo::repl::OpTime)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1248:2: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1248 | _M_erase_aux(__first, __last); | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'mongo::repl::ReplicationCoordinatorImpl::PostMemberStateUpdateAction mongo::repl::ReplicationCoordinatorImpl::_updateMemberStateFromTopologyCoordinator_inlock(mongo::OperationContext*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1248:2: note: parameter passing for argument of type 'std::_Rb_tree, std::less, std::allocator >::const_iterator' {aka 'std::_Rb_tree_const_iterator'} changed in GCC 7.1 1248 | _M_erase_aux(__first, __last); | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/sasl_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/sasl_commands.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_server.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/keys_collection_client.h:33, from src/mongo/db/keys_collection_client_direct.h:37, from src/mongo/db/keys_collection_client_direct.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::KeysCollectionDocument}; _Tp = mongo::KeysCollectionDocument; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual mongo::StatusWith > mongo::KeysCollectionClientDirect::getNewKeys(mongo::OperationContext*, mongo::StringData, const mongo::LogicalTime&, bool)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/sasl_commands.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/sasl_commands.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/sasl_commands.cpp:45: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/sasl_commands.cpp:45: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/ftdc/libftdc_server.a build/opt/mongo/db/ftdc/ftdc_server.o build/opt/mongo/db/ftdc/ftdc_system_stats.o build/opt/mongo/db/ftdc/ftdc_system_stats_linux.o src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/ftdc/libftdc_server.a src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authz_session_external_state_server_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authz_session_external_state_server_common.cpp ar rcsTD build/opt/mongo/db/libkeys_collection_client_direct.a build/opt/mongo/db/keys_collection_client_direct.o Skipping ranlib for thin archive build/opt/mongo/db/libkeys_collection_client_direct.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ztrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ztrans.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ethpccal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ethpccal.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/storage_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/storage_interface.cpp src/mongo/db/auth/sasl_commands.cpp: In function 'mongo::StatusWith > mongo::{anonymous}::doSaslStart(mongo::OperationContext*, const string&, const mongo::BSONObj&, mongo::BSONObjBuilder*, std::string*)': src/mongo/db/auth/sasl_commands.cpp:251:21: warning: redundant move in return statement [-Wredundant-move] 251 | return std::move(session); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/auth/sasl_commands.cpp:251:21: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/librepl_coordinator_impl.a build/opt/mongo/db/repl/check_quorum_for_config_change.o build/opt/mongo/db/repl/elect_cmd_runner.o build/opt/mongo/db/repl/freshness_checker.o build/opt/mongo/db/repl/repl_set_config_checks.o build/opt/mongo/db/repl/replication_coordinator_impl.o build/opt/mongo/db/repl/replication_coordinator_impl_elect.o build/opt/mongo/db/repl/replication_coordinator_impl_elect_v1.o build/opt/mongo/db/repl/replication_coordinator_impl_heartbeat.o build/opt/mongo/db/repl/vote_requester.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_coordinator_impl.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/read_preference.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/read_preference.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/sasl_commands.cpp:45: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tzfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tzfmt.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/server_status_servers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/server_status_servers.cpp src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libauthservercommon.a build/opt/mongo/db/auth/authz_session_external_state_server_common.o build/opt/mongo/db/auth/sasl_commands.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauthservercommon.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_element_iterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_element_iterator.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/commands/server_status_servers.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/commands/server_status_servers.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/client/libread_preference.a build/opt/mongo/client/read_preference.o In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/commands/server_status_servers.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/client/libread_preference.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tmutfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tmutfmt.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/client.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/commands/server_status_servers.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/operation_context.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/operation_context.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/storage_interface.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/multi_key_path_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/multi_key_path_tracker.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/server_recovery.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/server_recovery.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/commands/server_status_servers.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/operation_context_group.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/operation_context_group.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/encryption_hooks.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/encryption_hooks.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/plurrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/plurrule.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/block_compressor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/block_compressor.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/impersonation_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/impersonation_session.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_geo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_geo.cpp ar rcsTD build/opt/mongo/db/libservice_context.a build/opt/mongo/db/client.o build/opt/mongo/db/multi_key_path_tracker.o build/opt/mongo/db/operation_context.o build/opt/mongo/db/operation_context_group.o build/opt/mongo/db/service_context.o build/opt/mongo/db/server_recovery.o build/opt/mongo/db/unclean_shutdown.o Skipping ranlib for thin archive build/opt/mongo/db/libservice_context.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/ssl_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/ssl_options.cpp ar rcsTD build/opt/mongo/db/storage/libencryption_hooks.a build/opt/mongo/db/storage/encryption_hooks.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libencryption_hooks.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/command_request_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/command_request_builder.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_geo.h:38, from src/mongo/db/matcher/expression_geo.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_geo.h:38, from src/mongo/db/matcher/expression_geo.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_geo.h:39, from src/mongo/db/matcher/expression_geo.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/expression_geo.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/mr_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/mr_common.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/rpc/command_request_builder.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/rpc/command_request_builder.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_geo.cpp: In member function 'virtual std::unique_ptr mongo::GeoMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_geo.cpp:417:21: warning: redundant move in return statement [-Wredundant-move] 417 | return std::move(next); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_geo.cpp:417:21: note: remove 'std::move' call src/mongo/db/matcher/expression_geo.cpp: In member function 'virtual std::unique_ptr mongo::GeoNearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_geo.cpp:474:21: warning: redundant move in return statement [-Wredundant-move] 474 | return std::move(next); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_geo.cpp:474:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/rpc/command_request_builder.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/rpc/command_request_builder.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr_common.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr_common.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr_common.cpp:31: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/expression_geo.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr_common.cpp:31: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/rpc/command_request_builder.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_geo.cpp: In member function 'mongo::Status mongo::GeoNearExpression::parseNewQuery(const mongo::BSONObj&)': src/mongo/db/matcher/expression_geo.cpp:238:93: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 238 | if (PathAcceptingKeyword::GEO_NEAR != MatchExpressionParser::parsePathAcceptingKeyword(e)) { | ^ ar rcsTD build/opt/mongo/util/net/libssl_options.a build/opt/mongo/util/net/ssl_options.o Skipping ranlib for thin archive build/opt/mongo/util/net/libssl_options.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_zlib.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS src/third_party/shim_zlib.cpp ar rcsTD build/opt/third_party/libshim_zlib.a build/opt/third_party/shim_zlib.o Skipping ranlib for thin archive build/opt/third_party/libshim_zlib.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/lite_parsed_document_source.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/lite_parsed_document_source.cpp src/mongo/db/matcher/expression_geo.cpp: In member function 'mongo::Status mongo::GeoExpression::parseQuery(const mongo::BSONObj&)': src/mongo/db/matcher/expression_geo.cpp:66:77: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 66 | auto keyword = MatchExpressionParser::parsePathAcceptingKeyword(queryElt); | ^ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/commands/mr.h:39, from src/mongo/db/commands/mr_common.cpp:31: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/rpc/libcommand_request.a build/opt/mongo/rpc/command_request.o build/opt/mongo/rpc/command_request_builder.o src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/rpc/libcommand_request.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/sharding_catalog_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/sharding_catalog_manager.cpp ar rcsTD build/opt/mongo/s/client/libshard_interface.a build/opt/mongo/s/client/shard.o Skipping ranlib for thin archive build/opt/mongo/s/client/libshard_interface.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ttl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ttl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uregex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uregex.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/modifier_table.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/modifier_table.cpp ar rcsTD build/opt/mongo/db/pipeline/liblite_parsed_document_source.a build/opt/mongo/db/pipeline/lite_parsed_document_source.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/liblite_parsed_document_source.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2polygonbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2polygonbuilder.cc In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_table.h:33, from src/mongo/db/update/modifier_table.cpp:31: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ttl.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_table.h:33, from src/mongo/db/update/modifier_table.cpp:31: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ttl.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ttl.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ttl.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/third_party/s2/s2polygonbuilder.h:17, from src/third_party/s2/s2polygonbuilder.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const Vector3&}; _Tp = Vector3; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/third_party/s2/s2.h:6, from src/third_party/s2/s2polygonbuilder.h:23, from src/third_party/s2/s2polygonbuilder.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/third_party/s2/s2polygonbuilder.h:17, from src/third_party/s2/s2polygonbuilder.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2PolygonBuilder::BuildMergeMap(S2PolygonBuilder::PointIndex*, S2PolygonBuilder::MergeMap*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/third_party/s2/s2.h:6, from src/third_party/s2/s2polygonbuilder.h:23, from src/third_party/s2/s2polygonbuilder.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = S2CellId; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/third_party/s2/s2.h:6, from src/third_party/s2/s2polygonbuilder.h:23, from src/third_party/s2/s2polygonbuilder.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/third_party/s2/s2polygonbuilder.h:17, from src/third_party/s2/s2polygonbuilder.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'S2Loop* S2PolygonBuilder::AssembleLoop(const S2Point&, const S2Point&, S2PolygonBuilder::EdgeList*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'bool S2PolygonBuilder::AddEdge(const S2Point&, const S2Point&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/third_party/s2/s2.h:6, from src/third_party/s2/s2polygonbuilder.h:23, from src/third_party/s2/s2polygonbuilder.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void S2PolygonBuilder::SpliceEdges(S2PolygonBuilder::PointIndex*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/database_cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/database_cloner.cpp ar rcsTD build/opt/mongo/db/storage/mmap_v1/librepair_database_interface.a build/opt/mongo/db/storage/mmap_v1/repair_database_interface.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/librepair_database_interface.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/decimfmtimpl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/decimfmtimpl.cpp ar rcsTD build/opt/mongo/db/libsigned_logical_time.a build/opt/mongo/db/signed_logical_time.o Skipping ranlib for thin archive build/opt/mongo/db/libsigned_logical_time.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index_builder.cpp In file included from src/mongo/db/update/modifier_table.cpp:43: src/mongo/db/update/conflict_placeholder_node.h: In member function 'virtual mongo::Status mongo::ConflictPlaceholderNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/conflict_placeholder_node.h:49:12: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 49 | Status init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) final { | ^~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/keys_collection_document.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/keys_collection_document.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/database_cloner.h:41, from src/mongo/db/repl/database_cloner.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/database_cloner.h:41, from src/mongo/db/repl/database_cloner.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/database_cloner.h:41, from src/mongo/db/repl/database_cloner.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/database_cloner.h:41, from src/mongo/db/repl/database_cloner.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/ttl.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/index_builder.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/index_builder.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/index_builder.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libkeys_collection_document.a build/opt/mongo/db/keys_collection_document.o Skipping ranlib for thin archive build/opt/mongo/db/libkeys_collection_document.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/session_killer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/session_killer.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/index_builder.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/database_cloner.h:41, from src/mongo/db/repl/database_cloner.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libttl_d.a build/opt/mongo/db/ttl.o Skipping ranlib for thin archive build/opt/mongo/db/libttl_d.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/collation/collator_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_interface.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/collation/collation_index_key.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/collation/collation_index_key.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/index_builder.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/database_cloner.h:36, from src/mongo/db/repl/database_cloner.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::repl::CollectionCloner::Stats}; _Tp = mongo::repl::CollectionCloner::Stats; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/collation/collation_spec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/collation/collation_spec.cpp /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::repl::DatabaseCloner::Stats mongo::repl::DatabaseCloner::getStats() const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ src/mongo/db/repl/database_cloner.cpp: In member function 'void mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith&, mongo::Fetcher::NextAction*, mongo::BSONObjBuilder*)': src/mongo/db/repl/database_cloner.cpp:383:61: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 383 | auto res = CollectionUUID::parse(uuidElement); | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/write_ops_parsers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/write_ops_parsers.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/getmore_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/getmore_cmd.cpp src/mongo/db/query/collation/collation_index_key.cpp: In static member function 'static void mongo::CollationIndexKey::collationAwareIndexKeyAppend(mongo::BSONElement, const mongo::CollatorInterface*, mongo::BSONObjBuilder*)': src/mongo/db/query/collation/collation_index_key.cpp:150:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 150 | void CollationIndexKey::collationAwareIndexKeyAppend(BSONElement elt, | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/operation_time_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/operation_time_tracker.cpp ar rcsTD build/opt/mongo/db/query/collation/libcollator_interface.a build/opt/mongo/db/query/collation/collation_index_key.o build/opt/mongo/db/query/collation/collation_spec.o build/opt/mongo/db/query/collation/collator_interface.o Skipping ranlib for thin archive build/opt/mongo/db/query/collation/libcollator_interface.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/bson/dotted_path_support.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/bson/dotted_path_support.cpp ar rcsTD build/opt/mongo/db/liblogical_time.a build/opt/mongo/db/logical_time.o build/opt/mongo/db/operation_time_tracker.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_time.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/database_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/database_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/getmore_cmd.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/bson/libdotted_path_support.a build/opt/mongo/db/bson/dotted_path_support.o src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ Skipping ranlib for thin archive build/opt/mongo/db/bson/libdotted_path_support.a In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/getmore_cmd.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/kv/kv_collection_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/getmore_cmd.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/getmore_cmd.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/ops/libwrite_ops_parsers.a build/opt/mongo/db/ops/write_ops_parsers.o build/opt/mongo/db/ops/write_ops_gen.o Skipping ranlib for thin archive build/opt/mongo/db/ops/libwrite_ops_parsers.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/plan_cache_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/plan_cache_commands.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_impl.h:33, from src/mongo/db/catalog/database_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_impl.h:33, from src/mongo/db/catalog/database_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_impl.h:33, from src/mongo/db/catalog/database_impl.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_impl.h:33, from src/mongo/db/catalog/database_impl.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/plan_cache_commands.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/plan_cache_commands.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/plan_cache_commands.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/plan_cache_commands.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/getmore_cmd.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/catalog/collection_options.h:38, from src/mongo/db/catalog/collection_catalog_entry.h:36, from src/mongo/db/storage/kv/kv_collection_catalog_entry.h:37, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::BSONCollectionCatalogEntry::IndexMetaData&}; _Tp = mongo::BSONCollectionCatalogEntry::IndexMetaData; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/catalog/collection_options.h:38, from src/mongo/db/catalog/collection_catalog_entry.h:36, from src/mongo/db/storage/kv/kv_collection_catalog_entry.h:37, from src/mongo/db/storage/kv/kv_collection_catalog_entry.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::Status mongo::KVCollectionCatalogEntry::prepareForIndexBuild(mongo::OperationContext*, const mongo::IndexDescriptor*, bool)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/plan_cache_commands.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tzrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tzrule.cpp ar rcsTD build/opt/mongo/db/libttl_collection_cache.a build/opt/mongo/db/ttl_collection_cache.o Skipping ranlib for thin archive build/opt/mongo/db/libttl_collection_cache.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/global_lock_acquisition_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/concurrency/global_lock_acquisition_tracker.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_impl.h:33, from src/mongo/db/catalog/database_impl.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/message.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/message.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/protocol.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/protocol.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/sessions_collection_standalone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/sessions_collection_standalone.cpp ar rcsTD build/opt/mongo/rpc/libprotocol.a build/opt/mongo/rpc/message.o build/opt/mongo/rpc/op_msg.o build/opt/mongo/rpc/protocol.o Skipping ranlib for thin archive build/opt/mongo/rpc/libprotocol.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/rollback_source_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/rollback_source_impl.cpp ar rcsTD build/opt/mongo/db/exec/libstagedebug_cmd.a build/opt/mongo/db/exec/stagedebug_cmd.o Skipping ranlib for thin archive build/opt/mongo/db/exec/libstagedebug_cmd.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/action_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/action_set.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/authenticate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/authenticate.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/chnsecal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/chnsecal.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/privilege.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/privilege.cpp ar rcsTD build/opt/mongo/db/libsessions_collection_standalone.a build/opt/mongo/db/sessions_collection_standalone.o Skipping ranlib for thin archive build/opt/mongo/db/libsessions_collection_standalone.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationsets.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationsets.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/message_compressor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/transport/message_compressor_manager.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/sessions_collection_sharded.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/sessions_collection_sharded.cpp src/mongo/client/authenticate.cpp: In function 'mongo::StatusWith > mongo::auth::{anonymous}::extractDBField(const mongo::BSONObj&)': src/mongo/client/authenticate.cpp:87:21: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(db); | ~~~~~~~~~^~~~ src/mongo/client/authenticate.cpp:87:21: note: remove 'std::move' call src/mongo/client/authenticate.cpp: In function 'mongo::auth::AuthRequest mongo::auth::{anonymous}::createX509AuthCmd(const mongo::BSONObj&, mongo::StringData)': src/mongo/client/authenticate.cpp:134:21: warning: redundant move in return statement [-Wredundant-move] 134 | return std::move(request); | ~~~~~~~~~^~~~~~~~~ src/mongo/client/authenticate.cpp:134:21: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/librollback_source_impl.a build/opt/mongo/db/repl/rollback_source_impl.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librollback_source_impl.a ar rcsTD build/opt/mongo/db/libstartup_warnings_mongod.a build/opt/mongo/db/startup_warnings_mongod.o Skipping ranlib for thin archive build/opt/mongo/db/libstartup_warnings_mongod.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2edgeutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2edgeutil.cc In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/sessions_collection_sharded.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/sessions_collection_sharded.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/sessions_collection_sharded.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationcompare.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationcompare.cpp ar rcsTD build/opt/mongo/db/repl/libabstract_async_component.a build/opt/mongo/db/repl/abstract_async_component.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libabstract_async_component.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2polygon.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2polygon.cc In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/sessions_collection_sharded.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/dbmain.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/db/dbmain.cpp ar rcsTD build/opt/mongo/client/libauthentication.a build/opt/mongo/client/authenticate.o Skipping ranlib for thin archive build/opt/mongo/client/libauthentication.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/reporter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/reporter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/precision.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/precision.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp: In member function 'virtual std::unique_ptr mongo::InternalSchemaRootDocEqMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp:77:21: warning: redundant move in return statement [-Wredundant-move] 77 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.cpp:77:21: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/logger/message_log_domain.h:35, from src/mongo/logger/component_message_log_domain.h:34, from src/mongo/logger/log_manager.h:36, from src/mongo/logger/logger.h:33, from src/third_party/s2/base/logging.h:20, from src/third_party/s2/s2.h:23, from src/third_party/s2/s2polygon.cc:10: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const Vector3&}; _Tp = Vector3; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/third_party/s2/s2polygon.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__move_median_to_first(_Iterator, _Iterator, _Iterator, _Iterator, _Compare) [with _Iterator = __gnu_cxx::__normal_iterator >*, std::vector > > >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:78:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 78 | __move_median_to_first(_Iterator __result,_Iterator __a, _Iterator __b, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:78:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:78:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:78:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, std::vector > > >; _Compare = __gnu_cxx::__ops::_Val_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, std::vector > > >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, std::vector > > >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1879:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1879 | __final_insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1879:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1879:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/batched_command_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/write_ops/batched_command_request.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/third_party/s2/s2polygon.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, std::vector > > >; _Distance = int; _Tp = std::pair >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/third_party/s2/s2polygon.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >*, std::vector > > >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1920:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1920 | std::__move_median_to_first(__first, __first + 1, __mid, __last - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1921 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1920:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void ClipBoundary(const S2Polygon*, bool, const S2Polygon*, bool, bool, bool, S2PolygonBuilder*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void BreakEdgesAndAddToBuilder(S2LoopsAsVectorsIndex*, S2PolygonBuilder*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void S2Polygon::InternalClipPolyline(bool, const S2Polyline*, std::vector*, S1Angle) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1970:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >*, std::vector > > >' changed in GCC 7.1 1970 | std::__final_insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/logger/message_log_domain.h:35, from src/mongo/logger/component_message_log_domain.h:34, from src/mongo/logger/log_manager.h:36, from src/mongo/logger/logger.h:33, from src/third_party/s2/base/logging.h:20, from src/third_party/s2/s2.h:23, from src/third_party/s2/s2polygon.cc:10: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/sessions_collection_sharded.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libreporter.a build/opt/mongo/db/repl/reporter.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreporter.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/connpool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/connpool.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/replica_set_monitor_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/replica_set_monitor_manager.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/mongo_uri_connect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/mongo_uri_connect.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/global_conn_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/global_conn_pool.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:69, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stack:60, from src/mongo/client/connpool.h:36, from src/mongo/client/connpool.cpp:40: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc: In member function 'void std::deque<_Tp, _Alloc>::_M_destroy_data_aux(std::deque<_Tp, _Alloc>::iterator, std::deque<_Tp, _Alloc>::iterator) [with _Tp = mongo::PoolForHost::StoredConnection; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:854:6: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 854 | deque<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:854:6: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/client/connection_string.h:36, from src/mongo/client/dbclientinterface.h:36, from src/mongo/client/connpool.h:38, from src/mongo/client/connpool.cpp:40: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::PoolForHost::StoredConnection}; _Tp = mongo::PoolForHost::StoredConnection; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::PoolForHost::getStaleConnections(mongo::Date_t, std::vector&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/replica_set_monitor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/replica_set_monitor.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:67, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/stack:60, from src/mongo/client/connpool.h:36, from src/mongo/client/connpool.cpp:40: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h: In member function 'void mongo::PoolForHost::clear()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 2114 | _M_destroy_data_aux(__first, __last); | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 2114 | _M_destroy_data_aux(__first, __last); | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h: In destructor 'mongo::PoolForHost::~PoolForHost()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 2114 | _M_destroy_data_aux(__first, __last); | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:2114:4: note: parameter passing for argument of type 'std::deque >::iterator' {aka 'std::_Deque_iterator'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/bson/bson_comparator_interface_base.h:35, from src/mongo/bson/bsonelement.h:45, from src/mongo/db/jsobj.h:49, from src/mongo/client/index_spec.h:37, from src/mongo/client/dbclientinterface.h:37, from src/mongo/client/connpool.h:38, from src/mongo/client/connpool.cpp:40: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple, std::tuple<>}; _Key = mongo::DBConnectionPool::PoolKey; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = mongo::DBConnectionPool::poolKeyCompare; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2452:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 2452 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from src/mongo/bson/bson_comparator_interface_base.h:35, from src/mongo/bson/bsonelement.h:45, from src/mongo/db/jsobj.h:49, from src/mongo/client/index_spec.h:37, from src/mongo/client/dbclientinterface.h:37, from src/mongo/client/connpool.h:38, from src/mongo/client/connpool.cpp:40: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'bool mongo::DBConnectionPool::isConnectionGood(const string&, mongo::DBClientBase*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'void mongo::DBConnectionPool::decrementEgress(const string&, mongo::DBClientBase*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'int mongo::DBConnectionPool::openConnections(const string&, double)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'mongo::DBClientBase* mongo::DBConnectionPool::_get(const string&, double)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'void mongo::DBConnectionPool::release(const string&, mongo::DBClientBase*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'mongo::DBClientBase* mongo::DBConnectionPool::_finishCreate(const string&, double, mongo::DBClientBase*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In static member function 'static mongo::DBClientBase* mongo::DBConnectionPool::Detail::get(mongo::DBConnectionPool*, const string&, double, Connect) [with Connect = mongo::DBConnectionPool::get(const mongo::ConnectionString&, double)::]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In static member function 'static mongo::DBClientBase* mongo::DBConnectionPool::Detail::get(mongo::DBConnectionPool*, const string&, double, Connect) [with Connect = mongo::DBConnectionPool::get(const string&, double)::]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In static member function 'static mongo::DBClientBase* mongo::DBConnectionPool::Detail::get(mongo::DBConnectionPool*, const string&, double, Connect) [with Connect = mongo::DBConnectionPool::get(const mongo::MongoURI&, double)::]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:518:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, mongo::DBConnectionPool::poolKeyCompare, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 518 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/health_log_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/catalog/health_log_gen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/extensions_callback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/extensions_callback.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/health_log_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_array.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_array.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move 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:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/health_log_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/health_log_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/health_log_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/extensions_callback.cpp: In static member function 'static mongo::StatusWith mongo::ExtensionsCallback::extractTextMatchExpressionParams(mongo::BSONElement)': src/mongo/db/matcher/extensions_callback.cpp:40:1: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 40 | ExtensionsCallback::extractTextMatchExpressionParams(BSONElement text) { | ^~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/extensions_callback.cpp: In static member function 'static mongo::StatusWith mongo::ExtensionsCallback::extractWhereMatchExpressionParams(mongo::BSONElement)': src/mongo/db/matcher/extensions_callback.cpp:102:1: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 102 | ExtensionsCallback::extractWhereMatchExpressionParams(BSONElement where) { | ^~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/memory:62, from src/mongo/client/replica_set_monitor.h:34, from src/mongo/client/replica_set_monitor.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::HostAndPort; _Compare = __gnu_cxx::__ops::_Iter_comp_val]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/user_name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/user_name.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/expression_array.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/expression_array.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/client/replica_set_monitor.h:40, from src/mongo/client/replica_set_monitor.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'mongo::{anonymous}::Node* mongo::ReplicaSetMonitor::SetState::findNode(const mongo::HostAndPort&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2032:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 2032 | return std::__lower_bound(__first, __last, __val, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 2033 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_array.cpp:33: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/message_compressor_zlib.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/transport/message_compressor_zlib.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/client/mongo_uri.h:36, from src/mongo/client/replica_set_monitor.h:41, from src/mongo/client/replica_set_monitor.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::ReplicaSetMonitor::SetState::Node}; _Tp = mongo::ReplicaSetMonitor::SetState::Node; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/client/replica_set_monitor.h:40, from src/mongo/client/replica_set_monitor.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::__find_if(_RandomAccessIterator, _RandomAccessIterator, _Predicate, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Predicate = __gnu_cxx::__ops::_Iter_pred]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:112:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 112 | __find_if(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:112:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'mongo::{anonymous}::Node* mongo::ReplicaSetMonitor::SetState::findOrCreateNode(const mongo::HostAndPort&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2032:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 2032 | return std::__lower_bound(__first, __last, __val, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 2033 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/client/mongo_uri.h:36, from src/mongo/client/replica_set_monitor.h:41, from src/mongo/client/replica_set_monitor.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:356:2: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 356 | _M_realloc_insert(begin() + __n, std::move(__v)); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2cellid.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2cellid.cc In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/catalog/health_log_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In constructor 'mongo::ReplicaSetMonitor::SetState::SetState(mongo::StringData, const std::set&, mongo::MongoURI)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::ReplicaSetMonitor::IsMasterReply&}; _Tp = mongo::ReplicaSetMonitor::IsMasterReply; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_num_properties.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_num_properties.cpp ar rcsTD build/opt/mongo/db/catalog/libhealth_log.a build/opt/mongo/db/catalog/health_log.o build/opt/mongo/db/catalog/health_log_gen.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libhealth_log.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/is_mongos.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/is_mongos.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/client/mongo_uri.h:36, from src/mongo/client/replica_set_monitor.h:41, from src/mongo/client/replica_set_monitor.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::ReplicaSetMonitor::Refresher::receivedIsMaster(const mongo::HostAndPort&, int64_t, const mongo::BSONObj&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/client/replica_set_monitor.h:40, from src/mongo/client/replica_set_monitor.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'mongo::HostAndPort mongo::ReplicaSetMonitor::SetState::getMatchingHost(const mongo::ReadPreferenceSetting&) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:161:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 161 | return __find_if(__first, __last, __pred, | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 162 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:161:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 161 | return __find_if(__first, __last, __pred, | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ 162 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/third_party/s2/s2cellid.h:14, from src/third_party/s2/s2cellid.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {S2CellId}; _Tp = S2CellId; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {S2CellId}; _Tp = S2CellId; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/thread_idle_callback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/transport/thread_idle_callback.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/expression_internal_schema_num_properties.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_num_properties.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/expression_internal_schema_num_properties.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_num_properties.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/client/libclientdriver_network.a build/opt/mongo/client/connection_string_connect.o build/opt/mongo/client/mongo_uri_connect.o build/opt/mongo/client/connpool.o build/opt/mongo/client/dbclient_connection.o build/opt/mongo/client/dbclient_rs.o build/opt/mongo/client/global_conn_pool.o build/opt/mongo/client/replica_set_monitor.o build/opt/mongo/client/replica_set_monitor_manager.o /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/add_shard_cmd_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/s/add_shard_cmd_gen.cpp Skipping ranlib for thin archive build/opt/mongo/client/libclientdriver_network.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/session_update_tracker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/session_update_tracker.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/fail_point_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/fail_point_registry.cpp ar rcsTD build/opt/mongo/libmongod_options_init.a build/opt/mongo/db/mongod_options_init.o Skipping ranlib for thin archive build/opt/mongo/libmongod_options_init.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/keys_collection_cache.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/keys_collection_cache.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/add_shard_cmd_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/add_shard_cmd_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update_index_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update_index_data.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/repl/session_update_tracker.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/repl/session_update_tracker.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/add_shard_cmd_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/repl/session_update_tracker.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/add_shard_cmd_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/repl/session_update_tracker.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrucode.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csrucode.cpp ar rcsTD build/opt/mongo/db/libupdate_index_data.a build/opt/mongo/db/update_index_data.o Skipping ranlib for thin archive build/opt/mongo/db/libupdate_index_data.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/crypto/sha_block_openssl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/crypto/sha_block_openssl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/basictz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/basictz.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/generic_cursor_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/generic_cursor_gen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/initial_split_policy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/initial_split_policy.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/s/add_shard_cmd_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/single_transaction_stats.h:33, from src/mongo/db/session.h:44, from src/mongo/db/repl/session_update_tracker.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/generic_cursor_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/generic_cursor_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/generic_cursor_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/session_update_tracker.h:35, from src/mongo/db/repl/session_update_tracker.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::repl::OplogEntry}; _Tp = mongo::repl::OplogEntry; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::repl::OplogEntry}; _Tp = mongo::repl::OplogEntry; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move 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 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/unordered_map:46, from src/mongo/stdx/unordered_map.h:36, from src/mongo/base/string_data_comparator_interface.h:34, from src/mongo/bson/bsonobj.h:45, from src/mongo/db/repl/session_update_tracker.h:37, from src/mongo/db/repl/session_update_tracker.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::iterator std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::erase(std::_Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, _H1, _H2, _Hash, _RehashPolicy, _Traits>::const_iterator) [with _Key = mongo::LogicalSessionId; _Value = std::pair; _Alloc = std::allocator >; _ExtractKey = std::__detail::_Select1st; _Equal = std::equal_to; _H1 = mongo::LogicalSessionIdHash; _H2 = std::__detail::_Mod_range_hashing; _Hash = std::__detail::_Default_ranged_hash; _RehashPolicy = std::__detail::_Prime_rehash_policy; _Traits = std::__detail::_Hashtable_traits]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:1849:5: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, mongo::LogicalSessionIdHash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 1849 | _Hashtable<_Key, _Value, _Alloc, _ExtractKey, _Equal, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1850 | _H1, _H2, _Hash, _RehashPolicy, _Traits>:: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/generic_cursor_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h: In member function 'std::vector mongo::repl::SessionUpdateTracker::_flushForQueryPredicate(const mongo::BSONObj&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/hashtable.h:768:42: note: parameter passing for argument of type 'std::_Hashtable, std::allocator >, std::__detail::_Select1st, std::equal_to, mongo::LogicalSessionIdHash, std::__detail::_Mod_range_hashing, std::__detail::_Default_ranged_hash, std::__detail::_Prime_rehash_policy, std::__detail::_Hashtable_traits >::const_iterator' {aka 'std::__detail::_Node_const_iterator, false, true>'} changed in GCC 7.1 768 | { return erase(const_iterator(__it)); } | ^ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/conn_pool_sync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/conn_pool_sync.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/2d_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/2d_access_method.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_sync.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_sync.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/generic_cursor_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_sync.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_sync.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/hash_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/hash_access_method.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/s2_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/s2_access_method.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/s/config/initial_split_policy.h:33, from src/mongo/db/s/config/initial_split_policy.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::NamespaceString&, mongo::ChunkRange, mongo::ChunkVersion&, const mongo::ShardId&}; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'void mongo::{anonymous}::appendChunk(const mongo::NamespaceString&, const mongo::BSONObj&, const mongo::BSONObj&, mongo::ChunkVersion*, const mongo::Timestamp&, const mongo::ShardId&, std::vector*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_sync.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/haystack_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/haystack_access_method.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/btree_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/btree_access_method.cpp ar rcsTD build/opt/mongo/db/s/libsharding_catalog_manager.a build/opt/mongo/db/s/config/initial_split_policy.o build/opt/mongo/db/s/config/namespace_serializer.o build/opt/mongo/db/s/config/sharding_catalog_manager_chunk_operations.o build/opt/mongo/db/s/config/sharding_catalog_manager_collection_operations.o build/opt/mongo/db/s/config/sharding_catalog_manager_database_operations.o build/opt/mongo/db/s/config/sharding_catalog_manager_shard_operations.o build/opt/mongo/db/s/config/sharding_catalog_manager_zone_operations.o build/opt/mongo/db/s/config/sharding_catalog_manager.o Skipping ranlib for thin archive build/opt/mongo/db/s/libsharding_catalog_manager.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_id_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/logical_session_id_gen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/test_commands_enabled.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/test_commands_enabled.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/haystack_access_method_internal.h:36, from src/mongo/db/index/haystack_access_method.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/haystack_access_method_internal.h:36, from src/mongo/db/index/haystack_access_method.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/haystack_access_method_internal.h:36, from src/mongo/db/index/haystack_access_method.cpp:45: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/haystack_access_method_internal.h:36, from src/mongo/db/index/haystack_access_method.cpp:45: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_id_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/reply_builder_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/reply_builder_interface.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_id_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_id_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/affixpatternparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/affixpatternparser.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/transport_layer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/transport/transport_layer.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_id_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/feature_compatibility_version.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/feature_compatibility_version.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/collection_cloner.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/collection_cloner.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/logical_session_id_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/commands/feature_compatibility_version.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/commands/feature_compatibility_version.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/commands/feature_compatibility_version.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/index/haystack_access_method_internal.h:36, from src/mongo/db/index/haystack_access_method.cpp:45: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/commands/feature_compatibility_version.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/collection_cloner.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/collection_cloner.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/collection_cloner.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/collection_cloner.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bson_comparator_interface_base.h:37, from src/mongo/bson/bsonobj_comparator_interface.h:33, from src/mongo/bson/simple_bsonobj_comparator.h:36, from src/mongo/db/index/index_access_method.h:37, from src/mongo/db/index/haystack_access_method.h:34, from src/mongo/db/index/haystack_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::RecordId&}; _Tp = mongo::RecordId; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bson_comparator_interface_base.h:37, from src/mongo/bson/bsonobj_comparator_interface.h:33, from src/mongo/bson/simple_bsonobj_comparator.h:36, from src/mongo/db/index/index_access_method.h:37, from src/mongo/db/index/haystack_access_method.h:34, from src/mongo/db/index/haystack_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::HaystackAccessMethod::searchCommand(mongo::OperationContext*, mongo::Collection*, const mongo::BSONObj&, double, const mongo::BSONObj&, mongo::BSONObjBuilder*, unsigned int)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/index/libindex_access_methods.a build/opt/mongo/db/index/2d_access_method.o build/opt/mongo/db/index/btree_access_method.o build/opt/mongo/db/index/fts_access_method.o build/opt/mongo/db/index/hash_access_method.o build/opt/mongo/db/index/haystack_access_method.o build/opt/mongo/db/index/s2_access_method.o Skipping ranlib for thin archive build/opt/mongo/db/index/libindex_access_methods.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/log_process_details.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/log_process_details.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/current_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/current_op.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/commands/feature_compatibility_version.h:36, from src/mongo/db/commands/feature_compatibility_version.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/collection_cloner.h:41, from src/mongo/db/repl/collection_cloner.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitaffix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/digitaffix.cpp ar rcsTD build/opt/mongo/executor/libtask_executor_interface.a build/opt/mongo/executor/task_executor.o Skipping ranlib for thin archive build/opt/mongo/executor/libtask_executor_interface.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/expression_context.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/expression_context.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/expression_context.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/expression_context.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/collection_cloner.h:35, from src/mongo/db/repl/collection_cloner.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::CursorResponse}; _Tp = mongo::CursorResponse; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::CursorResponse}; _Tp = mongo::CursorResponse; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/db/commands/current_op.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/stub_mongo_process_interface.h:34, from src/mongo/db/pipeline/expression_context.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/commands/libmongod_fcv.a build/opt/mongo/db/commands/feature_compatibility_version.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/commands/libmongod_fcv.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {}; _Tp = mongo::RemoteCursor; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/taiwncal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/taiwncal.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/stub_mongo_process_interface.h:34, from src/mongo/db/pipeline/expression_context.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/liblogical_session_cache_factory_mongos.a build/opt/mongo/db/logical_session_cache_factory_mongos.o src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_cache_factory_mongos.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/periodic_runner_factory.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/periodic_runner_factory.cpp /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::repl::CollectionCloner::_establishCollectionCursorsCallback(const RemoteCommandCallbackArgs&, mongo::repl::CollectionCloner::EstablishCursorsCommand)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/flush_router_config_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/commands/flush_router_config_cmd.cpp ar rcsTD build/opt/mongo/db/repl/libcollection_cloner.a build/opt/mongo/db/repl/collection_cloner.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libcollection_cloner.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/get_shard_map_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/commands/get_shard_map_cmd.cpp ar rcsTD build/opt/mongo/db/auth/libuser_name.a build/opt/mongo/db/auth/user_name.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libuser_name.a ar rcsTD build/opt/mongo/db/storage/kv/libkv_engine.a build/opt/mongo/db/storage/kv/kv_database_catalog_entry.o Skipping ranlib for thin archive build/opt/mongo/db/storage/kv/libkv_engine.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/crypto/sha256_block.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/crypto/sha256_block.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/flush_router_config_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/db/pipeline/stub_mongo_process_interface.h:34, from src/mongo/db/pipeline/expression_context.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/flush_router_config_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/flush_router_config_cmd.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/flush_router_config_cmd.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/get_shard_map_cmd.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/strings/stringprintf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/strings/stringprintf.cc In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/get_shard_map_cmd.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/get_shard_map_cmd.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/get_shard_map_cmd.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/libexpression_context.a build/opt/mongo/db/pipeline/expression_context.o build/opt/mongo/db/pipeline/variables.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libexpression_context.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/strings/split.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/strings/split.cc /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/strings/strutil.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Isrc/third_party/s2 -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/strings/strutil.cc In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/flush_router_config_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/service_entry_point_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/transport/service_entry_point_utils.cpp ar rcsTD build/opt/third_party/s2/strings/libstrings.a build/opt/third_party/s2/strings/split.o build/opt/third_party/s2/strings/stringprintf.o build/opt/third_party/s2/strings/strutil.o Skipping ranlib for thin archive build/opt/third_party/s2/strings/libstrings.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/collation/collator_factory_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/collation/collator_factory_interface.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/get_shard_map_cmd.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/range_arithmetic.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/range_arithmetic.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/dur_recover.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/dur_recover.cpp ar rcsTD build/opt/mongo/s/commands/libshared_cluster_commands.a build/opt/mongo/s/commands/flush_router_config_cmd.o build/opt/mongo/s/commands/get_shard_map_cmd.o Skipping ranlib for thin archive build/opt/mongo/s/commands/libshared_cluster_commands.a ar rcsTD build/opt/mongo/db/repl/libmultiapplier.a build/opt/mongo/db/repl/multiapplier.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libmultiapplier.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/i18n/decNumber.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/decNumber.c ar rcsTD build/opt/mongo/db/query/collation/libcollator_factory_interface.a build/opt/mongo/db/query/collation/collator_factory_interface.o Skipping ranlib for thin archive build/opt/mongo/db/query/collation/libcollator_factory_interface.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/query.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/query.cpp ar rcsTD build/opt/mongo/db/librange_arithmetic.a build/opt/mongo/db/range_arithmetic.o Skipping ranlib for thin archive build/opt/mongo/db/librange_arithmetic.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/sockaddr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/sockaddr.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/anytrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/anytrans.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/reap_logical_session_cache_now.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/reap_logical_session_cache_now.cpp src/mongo/db/storage/mmap_v1/dur_recover.cpp: In member function 'bool mongo::dur::RecoveryJob::processFileBuffer(mongo::OperationContext*, const void*, unsigned int)': src/mongo/db/storage/mmap_v1/dur_recover.cpp:492:41: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct mongo::dur::JHeader'; use assignment or value-initialization instead [-Wclass-memaccess] 492 | std::memset(&h, 0, sizeof(h)); | ^ In file included from src/mongo/db/storage/mmap_v1/dur_recover.h:40, from src/mongo/db/storage/mmap_v1/dur_recover.cpp:37: src/mongo/db/storage/mmap_v1/dur_journalformat.h:50:8: note: 'struct mongo::dur::JHeader' declared here 50 | struct JHeader { | ^~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authorization_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authorization_manager.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/auth_decorations.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/auth_decorations.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2edgeindex.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2edgeindex.cc In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/third_party/s2/s2edgeindex.h:16, from src/third_party/s2/s2edgeindex.cc:54: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const S2CellId&}; _Tp = S2CellId; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/third_party/s2/s2edgeindex.h:16, from src/third_party/s2/s2edgeindex.cc:54: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'int S2EdgeIndex::GetCovering(const S2Point&, const S2Point&, bool, std::vector*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/third_party/s2/s2edgeindex.h:16, from src/third_party/s2/s2edgeindex.cc:54: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {S2CellId}; _Tp = S2CellId; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In static member function 'static void S2EdgeIndex::GetEdgesInChildrenCells(const S2Point&, const S2Point&, std::vector*, const CellEdgeMultimap&, std::vector*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/pipeline/libexpression.a build/opt/mongo/db/pipeline/expression.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libexpression.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/isself.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/isself.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/geo/geoparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/geo/geoparser.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/reap_logical_session_cache_now.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/auth_decorations.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/auth_decorations.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/auth_decorations.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/auth_decorations.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/query/libcluster_cursor_manager.a build/opt/mongo/s/query/cluster_cursor_manager.o Skipping ranlib for thin archive build/opt/mongo/s/query/libcluster_cursor_manager.a ar rcsTD build/opt/mongo/db/libcursor_server_params.a build/opt/mongo/db/cursor_server_params.o Skipping ranlib for thin archive build/opt/mongo/db/libcursor_server_params.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/cpdtrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/cpdtrans.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/sasl_mechanism_registry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/sasl_mechanism_registry.cpp src/mongo/db/geo/geoparser.cpp: In function 'mongo::Status mongo::isLoopClosed(const std::vector >&, mongo::BSONElement)': src/mongo/db/geo/geoparser.cpp:169:15: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 169 | static Status isLoopClosed(const vector& loop, const BSONElement loopElt) { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/isself.cpp:48: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/isself.cpp:48: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/isself.cpp:48: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/geo/shapes.h:35, from src/mongo/db/geo/geoparser.h:33, from src/mongo/db/geo/geoparser.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const Vector3&}; _Tp = Vector3; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/geo/shapes.h:35, from src/mongo/db/geo/geoparser.h:33, from src/mongo/db/geo/geoparser.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In function 'mongo::Status mongo::parseArrayOfCoordinates(const mongo::BSONElement&, std::vector >*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_registry.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_registry.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/isself.cpp:48: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/geo/shapes.h:35, from src/mongo/db/geo/geoparser.h:33, from src/mongo/db/geo/geoparser.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::Point&}; _Tp = mongo::Point; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/geo/shapes.h:35, from src/mongo/db/geo/geoparser.h:33, from src/mongo/db/geo/geoparser.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In static member function 'static mongo::Status mongo::GeoParser::parseLegacyPolygon(const mongo::BSONObj&, mongo::PolygonWithCRS*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_registry.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/authentication_session.h:36, from src/mongo/db/auth/auth_decorations.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_registry.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/geo/geoparser.cpp: In function 'mongo::Status mongo::parseGeoJSONPolygonCoordinates(const mongo::BSONElement&, bool, S2Polygon*)': src/mongo/db/geo/geoparser.cpp:203:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 203 | status = isLoopClosed(points, coordinateElt); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/geo/geoparser.cpp: In static member function 'static mongo::Status mongo::GeoParser::parseGeoJSONPolygon(const mongo::BSONObj&, bool, mongo::PolygonWithCRS*)': src/mongo/db/geo/geoparser.cpp:314:26: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 314 | status = isLoopClosed(exteriorVertices, coordinates.front()); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/auth/libauth.a build/opt/mongo/db/auth/authorization_manager.o build/opt/mongo/db/auth/authorization_session.o build/opt/mongo/db/auth/auth_decorations.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauth.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/curop_failpoint_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/curop_failpoint_helpers.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/check_sharding_index_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/check_sharding_index_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/isself.cpp:48: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/auth/sasl_mechanism_registry.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_failpoint_helpers.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_failpoint_helpers.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_failpoint_helpers.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_failpoint_helpers.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/check_sharding_index_command.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/check_sharding_index_command.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/repl/libisself.a build/opt/mongo/db/repl/isself.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libisself.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/exec/working_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/exec/working_set.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/check_sharding_index_command.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/check_sharding_index_command.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/geo/hash.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/geo/hash.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/curop_failpoint_helpers.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/validate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/validate.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/views/resolved_view.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/views/resolved_view.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/geo/hash.h:33, from src/mongo/db/geo/hash.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::GeoHash&}; _Tp = mongo::GeoHash; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::GeoHash}; _Tp = mongo::GeoHash; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::GeoHash}; _Tp = mongo::GeoHash; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/bson/bsonelement.h:39, from src/mongo/db/jsobj.h:49, from src/mongo/db/geo/hash.h:33, from src/mongo/db/geo/hash.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::GeoHash::appendVertexNeighbors(unsigned int, std::vector*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/datetime/init_timezone_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/timelib-2018.01alpha1 -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/datetime/init_timezone_data.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/check_sharding_index_command.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/validate.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/validate.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/validate.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/validate.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/s/check_sharding_index_command.cpp:35: src/mongo/bson/bsonelement_comparator.h: In member function 'virtual void mongo::BSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/bsonelement_comparator.h:69:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 69 | hashCombineBSONElement(seed, toHash, _rules, _stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/views/libresolved_view.a build/opt/mongo/db/views/resolved_view.o Skipping ranlib for thin archive build/opt/mongo/db/views/libresolved_view.a ar rcsTD build/opt/third_party/libshim_icu.a build/opt/third_party/shim_icu.o Skipping ranlib for thin archive build/opt/third_party/libshim_icu.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/dbclient.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/client/dbclient.cpp ar rcsTD build/opt/mongo/db/query/datetime/libinit_timezone_data.a build/opt/mongo/db/query/datetime/init_timezone_data.o Skipping ranlib for thin archive build/opt/mongo/db/query/datetime/libinit_timezone_data.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authz_manager_external_state_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authz_manager_external_state_local.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/drop_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/drop_indexes.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient.cpp:51: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient.cpp:51: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient.cpp:51: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient.cpp:51: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_indexes.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_indexes.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_indexes.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_indexes.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/validate.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/client/dbclient.cpp:51: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/libauth_impl_internal_local.a build/opt/mongo/db/auth/authz_manager_external_state_local.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauth_impl_internal_local.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/write_unit_of_work.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/write_unit_of_work.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/top.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/top.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_indexes.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/update_leaf_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/update_leaf_node.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/quick_exit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/quick_exit.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/i18n/ulocdata.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ulocdata.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_build.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uspoof_build.cpp ar rcsTD build/opt/mongo/util/libquick_exit.a build/opt/mongo/util/quick_exit.o Skipping ranlib for thin archive build/opt/mongo/util/libquick_exit.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_asio.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include src/third_party/shim_asio.cpp ar rcsTD build/opt/third_party/libshim_asio.a build/opt/third_party/shim_asio.o Skipping ranlib for thin archive build/opt/third_party/libshim_asio.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/gregoimp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/gregoimp.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/rslog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/rslog.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/top.h:37, from src/mongo/db/stats/top.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/libcurop_failpoint_helpers.a build/opt/mongo/db/curop_failpoint_helpers.o In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/top.h:37, from src/mongo/db/stats/top.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ Skipping ranlib for thin archive build/opt/mongo/db/libcurop_failpoint_helpers.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/parallel.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/client/parallel.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/top.h:37, from src/mongo/db/stats/top.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/top.h:37, from src/mongo/db/stats/top.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/update_leaf_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/update_leaf_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/repl/librslog.a build/opt/mongo/db/repl/rslog.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librslog.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_expr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_expr.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_server_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_server_status.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_expr.h:35, from src/mongo/db/matcher/expression_expr.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_expr.h:35, from src/mongo/db/matcher/expression_expr.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_expr.h:36, from src/mongo/db/matcher/expression_expr.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/rewrite_expr.h:37, from src/mongo/db/matcher/expression_expr.h:37, from src/mongo/db/matcher/expression_expr.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/top.h:37, from src/mongo/db/stats/top.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_expr.cpp: In member function 'virtual std::unique_ptr mongo::ExprMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_expr.cpp:115:21: warning: redundant move in return statement [-Wredundant-move] 115 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/expression_expr.cpp:115:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/s/sharding_server_status.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/s/sharding_server_status.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/s/sharding_server_status.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/s/sharding_server_status.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libmongodandmongos.a build/opt/mongo/db/initialize_server_global_state.o build/opt/mongo/db/server_options_init.o Skipping ranlib for thin archive build/opt/mongo/db/libmongodandmongos.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_client_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_client_info.cpp src/mongo/db/matcher/expression_expr.cpp: In constructor 'mongo::ExprMatchExpression::ExprMatchExpression(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/matcher/expression_expr.cpp:45:1: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 45 | ExprMatchExpression::ExprMatchExpression(BSONElement elem, | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_expr.cpp:47:51: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 47 | : ExprMatchExpression(Expression::parseOperand(expCtx, elem, expCtx->variablesParseState), | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_expr.cpp: In member function 'virtual std::unique_ptr mongo::ExprMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_expr.cpp:109:97: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 109 | Expression::parseOperand(_expCtx, bob.obj().firstElement(), _expCtx->variablesParseState); | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/gender.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/gender.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/http_client_curl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/http_client_curl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_status.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_status.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/s/sharding_server_status.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/run_aggregate.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/run_aggregate.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/rename_collection_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/rename_collection_cmd.cpp ar rcsTD build/opt/mongo/db/s/libtype_shard_identity.a build/opt/mongo/db/s/add_shard_cmd_gen.o build/opt/mongo/db/s/type_shard_identity.o Skipping ranlib for thin archive build/opt/mongo/db/s/libtype_shard_identity.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_query_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_query_noop.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/free_mon/free_mon_status.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/free_mon/free_mon_status.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/free_mon/free_mon_status.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/free_mon/free_mon_status.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/fts/fts_query_noop.cpp: In member function 'virtual std::unique_ptr mongo::fts::FTSQueryNoop::clone() const': src/mongo/db/fts/fts_query_noop.cpp:46:21: warning: redundant move in return statement [-Wredundant-move] 46 | return std::move(clonedQuery); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/db/fts/fts_query_noop.cpp:46:21: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/fts/libfts_query_noop.a build/opt/mongo/db/fts/fts_query_noop.o Skipping ranlib for thin archive build/opt/mongo/db/fts/libfts_query_noop.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/extensions_callback_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/extensions_callback_noop.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/rename_collection_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/rename_collection_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/run_aggregate.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/run_aggregate.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/rename_collection_cmd.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/run_aggregate.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/rename_collection_cmd.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/run_aggregate.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/matcher/extensions_callback_noop.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/extensions_callback.h:33, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/matcher/extensions_callback_noop.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/matcher/extensions_callback_noop.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/free_mon/free_mon_status.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/extensions_callback_noop.cpp: In member function 'virtual mongo::StatusWithMatchExpression mongo::ExtensionsCallbackNoop::parseText(mongo::BSONElement) const': src/mongo/db/matcher/extensions_callback_noop.cpp:40:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 40 | StatusWithMatchExpression ExtensionsCallbackNoop::parseText(BSONElement text) const { | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/extensions_callback_noop.cpp:41:60: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 41 | auto textParams = extractTextMatchExpressionParams(text); | ^ src/mongo/db/matcher/extensions_callback_noop.cpp: In member function 'virtual mongo::StatusWithMatchExpression mongo::ExtensionsCallbackNoop::parseWhere(mongo::BSONElement) const': src/mongo/db/matcher/extensions_callback_noop.cpp:51:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 51 | StatusWithMatchExpression ExtensionsCallbackNoop::parseWhere(BSONElement where) const { | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/extensions_callback_noop.cpp:52:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 52 | auto whereParams = extractWhereMatchExpressionParams(where); | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/merge_chunks_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/merge_chunks_command.cpp ar rcsTD build/opt/mongo/db/free_mon/libfree_mon_mongod.a build/opt/mongo/db/free_mon/free_mon_commands.o build/opt/mongo/db/free_mon/free_mon_mongod.o build/opt/mongo/db/free_mon/free_mon_options.o build/opt/mongo/db/free_mon/free_mon_status.o build/opt/mongo/db/free_mon/http_client_curl.o Skipping ranlib for thin archive build/opt/mongo/db/free_mon/libfree_mon_mongod.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/background.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/background.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/rename_collection_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/merge_chunks_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/merge_chunks_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/merge_chunks_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/merge_chunks_command.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libbackground.a build/opt/mongo/db/background.o Skipping ranlib for thin archive build/opt/mongo/db/libbackground.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/util.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/commands/run_aggregate.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/index_filter_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/index_filter_commands.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path_traits.hpp:26, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path.hpp:26, from src/mongo/db/ftdc/util.h:33, from src/mongo/db/ftdc/util.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {bool}; _Tp = long long unsigned int; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/index_filter_commands.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/index_filter_commands.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/index_filter_commands.cpp:43: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/index_filter_commands.cpp:43: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/merge_chunks_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'mongo::StatusWith mongo::FTDCBSONUtil::{anonymous}::extractMetricsFromDocument(const mongo::BSONObj&, const mongo::BSONObj&, std::vector*, bool, size_t)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ src/mongo/db/ftdc/util.cpp:271:1: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 271 | } | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/current_date_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/current_date_node.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/arithmetic_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/arithmetic_node.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/auth/authorization_session.h:35, from src/mongo/db/s/merge_chunks_command.cpp:36: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::ChunkType&}; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/auth/authorization_session.h:35, from src/mongo/db/s/merge_chunks_command.cpp:36: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In function 'mongo::Status mongo::{anonymous}::mergeChunks(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::BSONObj&, const mongo::BSONObj&, const mongo::OID&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/current_date_node.h:33, from src/mongo/db/update/current_date_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/current_date_node.h:33, from src/mongo/db/update/current_date_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/arithmetic_node.h:33, from src/mongo/db/update/arithmetic_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/arithmetic_node.h:33, from src/mongo/db/update/arithmetic_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/field_parser.h:328, from src/mongo/db/s/merge_chunks_command.cpp:40: src/mongo/db/field_parser-inl.h: In static member function 'static mongo::FieldParser::FieldState mongo::FieldParser::extract(mongo::BSONElement, const mongo::BSONField >&, std::vector*, std::string*) [with T = mongo::BSONObj]': src/mongo/db/field_parser-inl.h:160:25: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 160 | FieldParser::FieldState FieldParser::extract(BSONElement elem, | ^~~~~~~~~~~ src/mongo/db/update/current_date_node.cpp: In member function 'virtual mongo::Status mongo::CurrentDateNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/current_date_node.cpp:56:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 56 | Status CurrentDateNode::init(BSONElement modExpr, | ^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/compare_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/compare_node.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/rename_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/rename_node.cpp src/mongo/db/update/arithmetic_node.cpp: In member function 'virtual mongo::Status mongo::ArithmeticNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/arithmetic_node.cpp:63:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 63 | Status ArithmeticNode::init(BSONElement modExpr, | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/object_replace_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/object_replace_node.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/index_filter_commands.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/compare_node.h:33, from src/mongo/db/update/compare_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/compare_node.h:33, from src/mongo/db/update/compare_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/rename_node.h:33, from src/mongo/db/update/rename_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/rename_node.h:33, from src/mongo/db/update/rename_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/update/path_support.h:41, from src/mongo/db/update/rename_node.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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/update/compare_node.cpp: In member function 'virtual mongo::Status mongo::CompareNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/compare_node.cpp:39:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 39 | Status CompareNode::init(BSONElement modExpr, | ^~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/update_array_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/update_array_node.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/modifier_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/modifier_node.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/update_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/update_node.cpp src/mongo/db/update/rename_node.cpp: In member function 'virtual mongo::Status mongo::{anonymous}::SetElementNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/rename_node.cpp:69:12: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 69 | Status init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) { | ^~~~ src/mongo/db/update/rename_node.cpp: In member function 'virtual mongo::Status mongo::RenameNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/rename_node.cpp:98:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 98 | Status RenameNode::init(BSONElement modExpr, | ^~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_array_node.h:37, from src/mongo/db/update/update_array_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_array_node.h:37, from src/mongo/db/update/update_array_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/update_object_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/update_object_node.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/modifier_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/modifier_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_array_node.h:37, from src/mongo/db/update/update_node.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_array_node.h:37, from src/mongo/db/update/update_node.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/update/update_array_node.cpp: In static member function 'static std::unique_ptr mongo::UpdateArrayNode::createUpdateNodeByMerging(const mongo::UpdateArrayNode&, const mongo::UpdateArrayNode&, mongo::FieldRef*)': src/mongo/db/update/update_array_node.cpp:48:21: warning: redundant move in return statement [-Wredundant-move] 48 | return std::move(mergedNode); | ~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/update/update_array_node.cpp:48:21: note: remove 'std::move' call In file included from src/mongo/db/update/path_support.h:41, from src/mongo/db/update/modifier_node.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_object_node.h:38, from src/mongo/db/update/update_object_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_with_placeholder.h:37, from src/mongo/db/update/update_object_node.h:38, from src/mongo/db/update/update_object_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/update/update_array_node.h:37, from src/mongo/db/update/update_array_node.cpp:33: src/mongo/db/matcher/expression_with_placeholder.h: In member function 'virtual mongo::UpdateNode::ApplyResult mongo::UpdateArrayNode::apply(mongo::UpdateNode::ApplyParams) const': src/mongo/db/matcher/expression_with_placeholder.h:78:43: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 78 | return _filter->matchesBSONElement(elem, details); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/unset_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/unset_node.cpp src/mongo/db/update/update_object_node.cpp: In static member function 'static std::unique_ptr mongo::UpdateObjectNode::createUpdateNodeByMerging(const mongo::UpdateObjectNode&, const mongo::UpdateObjectNode&, mongo::FieldRef*)': src/mongo/db/update/update_object_node.cpp:349:21: warning: redundant move in return statement [-Wredundant-move] 349 | return std::move(mergedNode); | ~~~~~~~~~^~~~~~~~~~~~ src/mongo/db/update/update_object_node.cpp:349:21: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/push_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/push_node.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/update_internal_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/update_internal_node.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/unset_node.h:33, from src/mongo/db/update/unset_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/unset_node.h:33, from src/mongo/db/update/unset_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/update/update_object_node.cpp: In static member function 'static mongo::StatusWith mongo::UpdateObjectNode::parseAndMerge(mongo::UpdateObjectNode*, mongo::modifiertable::ModifierType, mongo::BSONElement, const boost::intrusive_ptr&, const std::map >&, std::set >&)': src/mongo/db/update/update_object_node.cpp:188:18: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 188 | StatusWith UpdateObjectNode::parseAndMerge( | ^~~~~~~~~~~~~~~~ src/mongo/db/update/update_object_node.cpp:209:53: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 209 | foundIdentifiers); | ^ src/mongo/db/update/update_object_node.cpp:209:53: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/update/update_object_node.cpp:256:24: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 256 | status = leaf->init(modExpr, expCtx); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/push_node.h:37, from src/mongo/db/update/push_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/push_node.h:37, from src/mongo/db/update/push_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/pull_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/pull_node.cpp In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/update/push_node.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/update/push_node.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/update/addtoset_node.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/update/addtoset_node.cpp src/mongo/db/update/unset_node.cpp: In member function 'virtual mongo::Status mongo::UnsetNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/unset_node.cpp:39:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 39 | Status UnsetNode::init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) { | ^~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/command_can_run_here.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/command_can_run_here.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/array_culling_node.h:34, from src/mongo/db/update/pull_node.h:33, from src/mongo/db/update/pull_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/array_culling_node.h:34, from src/mongo/db/update/pull_node.h:33, from src/mongo/db/update/pull_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/addtoset_node.h:33, from src/mongo/db/update/addtoset_node.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/update/update_leaf_node.h:33, from src/mongo/db/update/modifier_node.h:33, from src/mongo/db/update/addtoset_node.h:33, from src/mongo/db/update/addtoset_node.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/update/push_node.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/matcher/copyable_match_expression.h:33, from src/mongo/db/update/pull_node.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/matcher/copyable_match_expression.h:33, from src/mongo/db/update/pull_node.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/command_can_run_here.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/command_can_run_here.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/command_can_run_here.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/command_can_run_here.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/update/push_node.cpp: In member function 'virtual mongo::Status mongo::PushNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/push_node.cpp:87:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 87 | Status PushNode::init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) { | ^~~~~~~~ src/mongo/db/update/push_node.cpp:133:97: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 133 | auto parsedSliceValue = MatchExpressionParser::parseIntegerElementToLong(sliceClause); | ^ src/mongo/db/update/push_node.cpp:177:80: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 177 | MatchExpressionParser::parseIntegerElementToLong(positionClause); | ^ src/mongo/db/update/addtoset_node.cpp: In member function 'virtual mongo::Status mongo::AddToSetNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/addtoset_node.cpp:66:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 66 | Status AddToSetNode::init(BSONElement modExpr, | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2regionintersection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2regionintersection.cc ar rcsTD build/opt/mongo/db/repl/liboplog_interface_remote.a build/opt/mongo/db/repl/oplog_interface_remote.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_interface_remote.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/views/view_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/views/view_catalog.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/matcher/copyable_match_expression.h:33, from src/mongo/db/update/pull_node.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/update/pull_node.cpp: In member function 'virtual mongo::Status mongo::PullNode::init(mongo::BSONElement, const boost::intrusive_ptr&)': src/mongo/db/update/pull_node.cpp:131:8: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 131 | Status PullNode::init(BSONElement modExpr, const boost::intrusive_ptr& expCtx) { | ^~~~~~~~ src/mongo/db/update/pull_node.cpp:137:56: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 137 | modExpr.embeddedObject().firstElement())) { | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/command_reply_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/command_reply_builder.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/command_can_run_here.h:35, from src/mongo/db/command_can_run_here.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/update/libupdate.a build/opt/mongo/db/update/addtoset_node.o build/opt/mongo/db/update/arithmetic_node.o build/opt/mongo/db/update/array_culling_node.o build/opt/mongo/db/update/bit_node.o build/opt/mongo/db/update/compare_node.o build/opt/mongo/db/update/current_date_node.o build/opt/mongo/db/update/modifier_node.o build/opt/mongo/db/update/modifier_table.o build/opt/mongo/db/update/object_replace_node.o build/opt/mongo/db/update/pop_node.o build/opt/mongo/db/update/pull_node.o build/opt/mongo/db/update/pullall_node.o build/opt/mongo/db/update/push_node.o build/opt/mongo/db/update/rename_node.o build/opt/mongo/db/update/set_node.o build/opt/mongo/db/update/unset_node.o build/opt/mongo/db/update/update_array_node.o build/opt/mongo/db/update/update_internal_node.o build/opt/mongo/db/update/update_leaf_node.o build/opt/mongo/db/update/update_node.o build/opt/mongo/db/update/update_object_node.o Skipping ranlib for thin archive build/opt/mongo/db/update/libupdate.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/command_reply.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/command_reply.cpp ar rcsTD build/opt/mongo/db/libcommand_can_run_here.a build/opt/mongo/db/command_can_run_here.o Skipping ranlib for thin archive build/opt/mongo/db/libcommand_can_run_here.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_shard_collection_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_shard_collection_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/views/view_catalog.cpp:47: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/views/view_catalog.cpp:47: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/views/view_catalog.cpp:47: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/views/view_catalog.cpp:47: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_commit_move_primary_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp ar rcsTD build/opt/mongo/rpc/libcommand_reply.a build/opt/mongo/rpc/command_reply.o build/opt/mongo/rpc/command_reply_builder.o build/opt/mongo/rpc/reply_builder_interface.o Skipping ranlib for thin archive build/opt/mongo/rpc/libcommand_reply.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_create_database_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_create_database_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/document_source.h:46, from src/mongo/db/views/view_catalog.cpp:47: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_command.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_move_primary_command.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_add_shard_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_add_shard_command.cpp ar rcsTD build/opt/mongo/db/views/libviews.a build/opt/mongo/db/views/view.o build/opt/mongo/db/views/view_catalog.o build/opt/mongo/db/views/view_graph.o Skipping ranlib for thin archive build/opt/mongo/db/views/libviews.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/cleanup_orphaned_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/cleanup_orphaned_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_database_command.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/flush_database_cache_updates_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/flush_database_cache_updates_command.cpp In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonelement_comparator_interface.h:33, from src/mongo/bson/simple_bsonelement_comparator.h:33, from src/mongo/db/s/config/configsvr_shard_collection_command.cpp:35: src/mongo/db/s/config/configsvr_shard_collection_command.cpp: In function 'boost::optional mongo::{anonymous}::getUUIDFromPrimaryShard(mongo::OperationContext*, const mongo::NamespaceString&, const std::shared_ptr&)': src/mongo/db/s/config/configsvr_shard_collection_command.cpp:585:39: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 585 | return uassertStatusOK(UUID::parse(collectionInfo["uuid"])); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_database_cache_updates_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_database_cache_updates_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_database_cache_updates_command.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_database_cache_updates_command.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/shardsvr_shard_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/shardsvr_shard_collection.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_command.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/cleanup_orphaned_cmd.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shardsvr_shard_collection.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shardsvr_shard_collection.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shardsvr_shard_collection.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shardsvr_shard_collection.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_database_cache_updates_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_commit_chunk_migration_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/flush_routing_table_cache_updates_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/flush_routing_table_cache_updates_command.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_state_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_state_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/sharding_state_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/sharding_state_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/sharding_state_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/sharding_state_command.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/shardsvr_shard_collection.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_commit_chunk_migration_command.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonelement_comparator_interface.h:33, from src/mongo/bson/simple_bsonelement_comparator.h:33, from src/mongo/db/s/shardsvr_shard_collection.cpp:35: src/mongo/db/s/shardsvr_shard_collection.cpp: In function 'mongo::{anonymous}::ShardCollectionTargetState mongo::{anonymous}::calculateTargetState(mongo::OperationContext*, const mongo::NamespaceString&, const mongo::ShardsvrShardCollection&)': src/mongo/db/s/shardsvr_shard_collection.cpp:423:39: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 423 | return uassertStatusOK(UUID::parse(collectionInfo["uuid"])); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/sharding_state_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/migration_chunk_cloner_source_legacy_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/flush_routing_table_cache_updates_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_update_zone_key_range_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_create_collection_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_create_collection_command.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/set_shard_version_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/set_shard_version_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/set_shard_version_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/set_shard_version_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/set_shard_version_command.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/set_shard_version_command.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/migration_chunk_cloner_source_legacy_commands.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_update_zone_key_range_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_create_collection_command.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_move_primary_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_move_primary_command.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_split_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_split_chunk_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/s/set_shard_version_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_move_chunk_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_move_chunk_command.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/unset_sharding_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/unset_sharding_command.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_split_chunk_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_command.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_command.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_command.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_primary_command.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_command.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_command.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_move_chunk_command.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/split_vector_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/split_vector_command.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/config/configsvr_add_shard_to_zone_command.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/unset_sharding_command.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/dist_lock_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/dist_lock_catalog.cpp src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/unicode/string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/unicode/string.cpp ar rcsTD build/opt/mongo/s/catalog/libdist_lock_catalog_interface.a build/opt/mongo/s/catalog/dist_lock_catalog.o Skipping ranlib for thin archive build/opt/mongo/s/catalog/libdist_lock_catalog_interface.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/dur_preplogbuffer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/dur_preplogbuffer.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_index_format.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_index_format.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/split_vector_command.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/s/config/configsvr_add_shard_to_zone_command.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/kv/kv_prefix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/kv/kv_prefix.cpp ar rcsTD build/opt/mongo/executor/libthread_pool_task_executor.a build/opt/mongo/executor/thread_pool_task_executor.o Skipping ranlib for thin archive build/opt/mongo/executor/libthread_pool_task_executor.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/currpinf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/currpinf.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/remote_command_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/executor/remote_command_request.cpp ar rcsTD build/opt/mongo/db/s/libcommands_db_s.a build/opt/mongo/db/s/check_sharding_index_command.o build/opt/mongo/db/s/cleanup_orphaned_cmd.o build/opt/mongo/db/s/clone_catalog_data_command.o build/opt/mongo/db/s/clone_collection_options_from_primary_shard_cmd.o build/opt/mongo/db/s/config/configsvr_add_shard_command.o build/opt/mongo/db/s/config/configsvr_add_shard_to_zone_command.o build/opt/mongo/db/s/config/configsvr_commit_chunk_migration_command.o build/opt/mongo/db/s/config/configsvr_commit_move_primary_command.o build/opt/mongo/db/s/config/configsvr_control_balancer_command.o build/opt/mongo/db/s/config/configsvr_create_collection_command.o build/opt/mongo/db/s/config/configsvr_create_database_command.o build/opt/mongo/db/s/config/configsvr_drop_collection_command.o build/opt/mongo/db/s/config/configsvr_drop_database_command.o build/opt/mongo/db/s/config/configsvr_enable_sharding_command.o build/opt/mongo/db/s/config/configsvr_merge_chunk_command.o build/opt/mongo/db/s/config/configsvr_move_chunk_command.o build/opt/mongo/db/s/config/configsvr_move_primary_command.o build/opt/mongo/db/s/config/configsvr_remove_shard_command.o build/opt/mongo/db/s/config/configsvr_remove_shard_from_zone_command.o build/opt/mongo/db/s/config/configsvr_shard_collection_command.o build/opt/mongo/db/s/config/configsvr_split_chunk_command.o build/opt/mongo/db/s/config/configsvr_update_zone_key_range_command.o build/opt/mongo/db/s/flush_database_cache_updates_command.o build/opt/mongo/db/s/flush_routing_table_cache_updates_command.o build/opt/mongo/db/s/get_database_version_command.o build/opt/mongo/db/s/get_shard_version_command.o build/opt/mongo/db/s/merge_chunks_command.o build/opt/mongo/db/s/migration_chunk_cloner_source_legacy_commands.o build/opt/mongo/db/s/migration_destination_manager_legacy_commands.o build/opt/mongo/db/s/move_chunk_command.o build/opt/mongo/db/s/move_primary_command.o build/opt/mongo/db/s/set_shard_version_command.o build/opt/mongo/db/s/shardsvr_shard_collection.o build/opt/mongo/db/s/sharding_server_status.o build/opt/mongo/db/s/sharding_state_command.o build/opt/mongo/db/s/split_chunk_command.o build/opt/mongo/db/s/split_vector_command.o build/opt/mongo/db/s/unset_sharding_command.o Skipping ranlib for thin archive build/opt/mongo/db/s/libcommands_db_s.a ar rcsTD build/opt/mongo/libmongodmain.a build/opt/mongo/db/db.o Skipping ranlib for thin archive build/opt/mongo/libmongodmain.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/quant.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/quant.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/secure_allocator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/secure_allocator.cpp src/mongo/db/storage/kv/kv_prefix.cpp: In static member function 'static mongo::KVPrefix mongo::KVPrefix::fromBSONElement(mongo::BSONElement)': src/mongo/db/storage/kv/kv_prefix.cpp:45:23: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 45 | /* static */ KVPrefix KVPrefix::fromBSONElement(const BSONElement value) { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/list_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/list_indexes.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/user_management_commands_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/user_management_commands_parser.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/idl/idl_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/idl/idl_parser.cpp ar rcsTD build/opt/mongo/base/libsecure_allocator.a build/opt/mongo/base/secure_allocator.o Skipping ranlib for thin archive build/opt/mongo/base/libsecure_allocator.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_fmod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_management_commands_parser.cpp:49: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_management_commands_parser.cpp:49: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_fmod.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/list_indexes.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/list_indexes.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_management_commands_parser.cpp:49: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_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/schema/expression_internal_schema_fmod.cpp:33: src/mongo/db/matcher/schema/expression_internal_schema_fmod.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaFmodMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:51:25: warning: redundant move in return statement [-Wredundant-move] 51 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:51:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_management_commands_parser.cpp:49: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/list_indexes.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/list_indexes.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/idl/libidl_parser.a build/opt/mongo/idl/idl_parser.o Skipping ranlib for thin archive build/opt/mongo/idl/libidl_parser.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/lock_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/lock_info.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/base/system_error.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/base/system_error.cpp ar rcsTD build/opt/mongo/base/libsystem_error.a build/opt/mongo/base/system_error.o Skipping ranlib for thin archive build/opt/mongo/base/libsystem_error.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationruleparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationruleparser.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_info.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_info.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_info.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/user_management_commands_parser.cpp:49: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 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:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_info.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_info.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_info.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/db/commands/list_indexes.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/lock_info.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/repl/replication_info.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/repl/replication_info.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/repl/replication_info.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/repl/replication_info.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/repl/replication_info.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/database_holder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/database_holder.cpp ar rcsTD build/opt/mongo/db/auth/libauthprivilege.a build/opt/mongo/db/auth/action_set.o build/opt/mongo/db/auth/action_type.o build/opt/mongo/db/auth/impersonation_session.o build/opt/mongo/db/auth/privilege.o build/opt/mongo/db/auth/privilege_parser.o build/opt/mongo/db/auth/resource_pattern.o build/opt/mongo/db/auth/user_management_commands_parser.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauthprivilege.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/matchable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/matchable.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_language.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_language.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/stubdata/stubdata.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/stubdata/stubdata.c ar rcsTD build/opt/third_party/icu4c-57.1/source/libicu_data.a build/opt/third_party/icu4c-57.1/source/stubdata/stubdata.o Skipping ranlib for thin archive build/opt/third_party/icu4c-57.1/source/libicu_data.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/kv/kv_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/kv/kv_catalog.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/catalog/hashtab.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/catalog/hashtab.cpp In file included from src/mongo/db/storage/mmap_v1/catalog/hashtab.h:36, from src/mongo/db/storage/mmap_v1/catalog/hashtab.cpp:35: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:151:42: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 151 | memset(this, 0, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:160:43: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 160 | memcpy(this, &e, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/currfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/currfmt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csr2022.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csr2022.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitinterval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/digitinterval.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/fail_point_service.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/fail_point_service.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/auth/sasl_mechanism_registry.h:39, from src/mongo/db/repl/replication_info.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/region.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/region.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/timezone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/timezone.cpp ar rcsTD build/opt/mongo/db/repl/libdatabase_cloner.a build/opt/mongo/db/repl/database_cloner.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libdatabase_cloner.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/fpositer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/fpositer.cpp ar rcsTD build/opt/mongo/db/catalog/libcollection_info_cache.a build/opt/mongo/db/catalog/collection_info_cache.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcollection_info_cache.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_buffer_blocking_queue.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_buffer_blocking_queue.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/prefetch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/prefetch.cpp ar rcsTD build/opt/mongo/db/repl/libreplication_info.a build/opt/mongo/db/repl/replication_info.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplication_info.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/lock_server_status_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/lock_server_status_section.cpp ar rcsTD build/opt/mongo/db/repl/liboplog_buffer_blocking_queue.a build/opt/mongo/db/repl/oplog_buffer_blocking_queue.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_buffer_blocking_queue.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/drop_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/drop_collection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/prefetch.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/prefetch.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/prefetch.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/prefetch.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/lock_server_status_section.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/lock_server_status_section.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/lock_server_status_section.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/lock_server_status_section.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_collection.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_collection.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_collection.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_collection.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/platform/decimal128.h:41, from src/mongo/platform/endian.h:40, from src/mongo/base/data_range.h:40, from src/mongo/bson/bsonelement.h:41, from src/mongo/db/jsobj.h:49, from src/mongo/bson/mutable/element.h:37, from src/mongo/db/auth/privilege.h:35, from src/mongo/db/commands.h:41, from src/mongo/db/commands.cpp:35: src/mongo/db/commands.cpp: In static member function 'static mongo::NamespaceStringOrUUID mongo::CommandHelpers::parseNsOrUUID(mongo::StringData, const mongo::BSONObj&)': src/mongo/db/commands.cpp:233:63: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 233 | return {dbname.toString(), uassertStatusOK(UUID::parse(first))}; | ~~~~~~~~~~~^~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/stats/lock_server_status_section.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libindex_catalog.a build/opt/mongo/db/catalog/index_catalog.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libindex_catalog.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/translit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/translit.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/wintzimpl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/wintzimpl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/regeximp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/regeximp.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/decimfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/decimfmt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucoleitr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucoleitr.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbnf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbnf.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/prefetch.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/toupptrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/toupptrn.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/reldtfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/reldtfmt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/numfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/numfmt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/strmatch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/strmatch.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/stsearch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/stsearch.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/i18n/decContext.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/decContext.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationkeys.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationkeys.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uspoof_impl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/islamcal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/islamcal.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationtailoring.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationtailoring.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nfrs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/nfrs.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/standardplural.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/standardplural.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/sortkey.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/sortkey.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/calendar.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/calendar.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/japancal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/japancal.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/measfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/measfmt.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/db/concurrency/write_conflict_exception.h:38, from src/mongo/db/catalog/drop_collection.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/scriptset.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/scriptset.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/zonemeta.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/zonemeta.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/usearch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/usearch.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/umsg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/umsg.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/unumsys.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/unumsys.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitgrouping.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/digitgrouping.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rematch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rematch.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/scientificnumberformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/scientificnumberformatter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/measunit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/measunit.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csdetect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csdetect.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitaffixesandpadding.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/digitaffixesandpadding.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nfrule.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/nfrule.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uni2name.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uni2name.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/selfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/selfmt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-gcc -o build/opt/third_party/icu4c-57.1/source/i18n/utmscale.o -c -std=c11 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/utmscale.c /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/numsys.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/numsys.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/funcrepl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/funcrepl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationfastlatinbuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationfastlatinbuilder.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucol_sit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucol_sit.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/regexst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/regexst.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/gregocal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/gregocal.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/unum.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/unum.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dangical.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dangical.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/indiancal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/indiancal.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/inputext.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/inputext.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tznames.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tznames.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/quantityformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/quantityformatter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nfsubs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/nfsubs.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/currunit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/currunit.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/upluralrules.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/upluralrules.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationdatawriter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationdatawriter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/windtfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/windtfmt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/winnmfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/winnmfmt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/olsontz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/olsontz.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csmatch.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csmatch.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucal.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/digitformatter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/smallintformatter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/smallintformatter.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrsbcs.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csrsbcs.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/choicfmt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/choicfmt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/smpdtfst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/smpdtfst.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tmutamt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tmutamt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/name2uni.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/name2uni.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/utf16collationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/utf16collationiterator.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/visibledigits.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/visibledigits.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dcfmtsym.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dcfmtsym.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uregion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uregion.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationdatareader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationdatareader.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/measure.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/measure.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dayperiodrules.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dayperiodrules.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/pluralaffix.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/pluralaffix.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/vzone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/vzone.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/remtrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/remtrans.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationrootelements.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationrootelements.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationdatabuilder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationdatabuilder.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/brktrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/brktrans.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tznames_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tznames_impl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbt_pars.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbt_pars.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucol.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucol.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_wsconf.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uspoof_wsconf.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/dtfmtsym.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/dtfmtsym.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/repattrn.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/repattrn.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/tridpars.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/tridpars.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rulebasedcollator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rulebasedcollator.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/digitlst.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/digitlst.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/fmtable_cnv.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/fmtable_cnv.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/rbtz.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/rbtz.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationiterator.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/collationweights.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/collationweights.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/regextxt.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/regextxt.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/ucln_in.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/ucln_in.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/strrepl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/strrepl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/nortrans.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/nortrans.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/vtzone.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/vtzone.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/udatpg.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/udatpg.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/fmtable.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/fmtable.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/coll.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/coll.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/persncal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/persncal.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/csrutf8.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/csrutf8.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/utf8collationiterator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/utf8collationiterator.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/icu4c-57.1/source/i18n/uspoof.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -Wno-sign-compare -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -DUCONFIG_NO_BREAK_ITERATION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1 -DU_CHARSET_IS_UTF8=1 -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1 -DU_USING_ICU_NAMESPACE=0 -DU_I18N_IMPLEMENTATION=1 -Isrc/third_party/icu4c-57.1/source/common -Isrc/third_party/icu4c-57.1/source/i18n src/third_party/icu4c-57.1/source/i18n/uspoof.cpp ar rcsTD build/opt/mongo/db/catalog/libdatabase_holder.a build/opt/mongo/db/catalog/database_holder.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libdatabase_holder.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/insert.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/insert.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/delete.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/delete.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ops/find_and_modify_result.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ops/find_and_modify_result.cpp Using tempfile /tmp/tmp0gWgyr.lnk for command line: ar rcsTD build/opt/third_party/icu4c-57.1/source/libicu_i18n.a build/opt/third_party/icu4c-57.1/source/i18n/affixpatternparser.o build/opt/third_party/icu4c-57.1/source/i18n/alphaindex.o build/opt/third_party/icu4c-57.1/source/i18n/anytrans.o build/opt/third_party/icu4c-57.1/source/i18n/astro.o build/opt/third_party/icu4c-57.1/source/i18n/basictz.o build/opt/third_party/icu4c-57.1/source/i18n/bocsu.o build/opt/third_party/icu4c-57.1/source/i18n/brktrans.o build/opt/third_party/icu4c-57.1/source/i18n/buddhcal.o build/opt/third_party/icu4c-57.1/source/i18n/calendar.o build/opt/third_party/icu4c-57.1/source/i18n/casetrn.o build/opt/third_party/icu4c-57.1/source/i18n/cecal.o build/opt/third_party/icu4c-57.1/source/i18n/chnsecal.o build/opt/third_party/icu4c-57.1/source/i18n/choicfmt.o build/opt/third_party/icu4c-57.1/source/i18n/coleitr.o build/opt/third_party/icu4c-57.1/source/i18n/coll.o build/opt/third_party/icu4c-57.1/source/i18n/collation.o build/opt/third_party/icu4c-57.1/source/i18n/collationbuilder.o build/opt/third_party/icu4c-57.1/source/i18n/collationcompare.o build/opt/third_party/icu4c-57.1/source/i18n/collationdata.o build/opt/third_party/icu4c-57.1/source/i18n/collationdatabuilder.o build/opt/third_party/icu4c-57.1/source/i18n/collationdatareader.o build/opt/third_party/icu4c-57.1/source/i18n/collationdatawriter.o build/opt/third_party/icu4c-57.1/source/i18n/collationfastlatin.o build/opt/third_party/icu4c-57.1/source/i18n/collationfastlatinbuilder.o build/opt/third_party/icu4c-57.1/source/i18n/collationfcd.o build/opt/third_party/icu4c-57.1/source/i18n/collationiterator.o build/opt/third_party/icu4c-57.1/source/i18n/collationkeys.o build/opt/third_party/icu4c-57.1/source/i18n/collationroot.o build/opt/third_party/icu4c-57.1/source/i18n/collationrootelements.o build/opt/third_party/icu4c-57.1/source/i18n/collationruleparser.o build/opt/third_party/icu4c-57.1/source/i18n/collationsets.o build/opt/third_party/icu4c-57.1/source/i18n/collationsettings.o build/opt/third_party/icu4c-57.1/source/i18n/collationtailoring.o build/opt/third_party/icu4c-57.1/source/i18n/collationweights.o build/opt/third_party/icu4c-57.1/source/i18n/compactdecimalformat.o build/opt/third_party/icu4c-57.1/source/i18n/coptccal.o build/opt/third_party/icu4c-57.1/source/i18n/cpdtrans.o build/opt/third_party/icu4c-57.1/source/i18n/csdetect.o build/opt/third_party/icu4c-57.1/source/i18n/csmatch.o build/opt/third_party/icu4c-57.1/source/i18n/csr2022.o build/opt/third_party/icu4c-57.1/source/i18n/csrecog.o build/opt/third_party/icu4c-57.1/source/i18n/csrmbcs.o build/opt/third_party/icu4c-57.1/source/i18n/csrsbcs.o build/opt/third_party/icu4c-57.1/source/i18n/csrucode.o build/opt/third_party/icu4c-57.1/source/i18n/csrutf8.o build/opt/third_party/icu4c-57.1/source/i18n/curramt.o build/opt/third_party/icu4c-57.1/source/i18n/currfmt.o build/opt/third_party/icu4c-57.1/source/i18n/currpinf.o build/opt/third_party/icu4c-57.1/source/i18n/currunit.o build/opt/third_party/icu4c-57.1/source/i18n/dangical.o build/opt/third_party/icu4c-57.1/source/i18n/datefmt.o build/opt/third_party/icu4c-57.1/source/i18n/dayperiodrules.o build/opt/third_party/icu4c-57.1/source/i18n/dcfmtsym.o build/opt/third_party/icu4c-57.1/source/i18n/decContext.o build/opt/third_party/icu4c-57.1/source/i18n/decNumber.o build/opt/third_party/icu4c-57.1/source/i18n/decfmtst.o build/opt/third_party/icu4c-57.1/source/i18n/decimalformatpattern.o build/opt/third_party/icu4c-57.1/source/i18n/decimfmt.o build/opt/third_party/icu4c-57.1/source/i18n/decimfmtimpl.o build/opt/third_party/icu4c-57.1/source/i18n/digitaffix.o build/opt/third_party/icu4c-57.1/source/i18n/digitaffixesandpadding.o build/opt/third_party/icu4c-57.1/source/i18n/digitformatter.o build/opt/third_party/icu4c-57.1/source/i18n/digitgrouping.o build/opt/third_party/icu4c-57.1/source/i18n/digitinterval.o build/opt/third_party/icu4c-57.1/source/i18n/digitlst.o build/opt/third_party/icu4c-57.1/source/i18n/dtfmtsym.o build/opt/third_party/icu4c-57.1/source/i18n/dtitvfmt.o build/opt/third_party/icu4c-57.1/source/i18n/dtitvinf.o build/opt/third_party/icu4c-57.1/source/i18n/dtptngen.o build/opt/third_party/icu4c-57.1/source/i18n/dtrule.o build/opt/third_party/icu4c-57.1/source/i18n/esctrn.o build/opt/third_party/icu4c-57.1/source/i18n/ethpccal.o build/opt/third_party/icu4c-57.1/source/i18n/fmtable.o build/opt/third_party/icu4c-57.1/source/i18n/fmtable_cnv.o build/opt/third_party/icu4c-57.1/source/i18n/format.o build/opt/third_party/icu4c-57.1/source/i18n/fphdlimp.o build/opt/third_party/icu4c-57.1/source/i18n/fpositer.o build/opt/third_party/icu4c-57.1/source/i18n/funcrepl.o build/opt/third_party/icu4c-57.1/source/i18n/gender.o build/opt/third_party/icu4c-57.1/source/i18n/gregocal.o build/opt/third_party/icu4c-57.1/source/i18n/gregoimp.o build/opt/third_party/icu4c-57.1/source/i18n/hebrwcal.o build/opt/third_party/icu4c-57.1/source/i18n/identifier_info.o build/opt/third_party/icu4c-57.1/source/i18n/indiancal.o build/opt/third_party/icu4c-57.1/source/i18n/inputext.o build/opt/third_party/icu4c-57.1/source/i18n/islamcal.o build/opt/third_party/icu4c-57.1/source/i18n/japancal.o build/opt/third_party/icu4c-57.1/source/i18n/measfmt.o build/opt/third_party/icu4c-57.1/source/i18n/measunit.o build/opt/third_party/icu4c-57.1/source/i18n/measure.o build/opt/third_party/icu4c-57.1/source/i18n/msgfmt.o build/opt/third_party/icu4c-57.1/source/i18n/name2uni.o build/opt/third_party/icu4c-57.1/source/i18n/nfrs.o build/opt/third_party/icu4c-57.1/source/i18n/nfrule.o build/opt/third_party/icu4c-57.1/source/i18n/nfsubs.o build/opt/third_party/icu4c-57.1/source/i18n/nortrans.o build/opt/third_party/icu4c-57.1/source/i18n/nultrans.o build/opt/third_party/icu4c-57.1/source/i18n/numfmt.o build/opt/third_party/icu4c-57.1/source/i18n/numsys.o build/opt/third_party/icu4c-57.1/source/i18n/olsontz.o build/opt/third_party/icu4c-57.1/source/i18n/persncal.o build/opt/third_party/icu4c-57.1/source/i18n/pluralaffix.o build/opt/third_party/icu4c-57.1/source/i18n/plurfmt.o build/opt/third_party/icu4c-57.1/source/i18n/plurrule.o build/opt/third_party/icu4c-57.1/source/i18n/precision.o build/opt/third_party/icu4c-57.1/source/i18n/quant.o build/opt/third_party/icu4c-57.1/source/i18n/quantityformatter.o build/opt/third_party/icu4c-57.1/source/i18n/rbnf.o build/opt/third_party/icu4c-57.1/source/i18n/rbt.o build/opt/third_party/icu4c-57.1/source/i18n/rbt_data.o build/opt/third_party/icu4c-57.1/source/i18n/rbt_pars.o build/opt/third_party/icu4c-57.1/source/i18n/rbt_rule.o build/opt/third_party/icu4c-57.1/source/i18n/rbt_set.o build/opt/third_party/icu4c-57.1/source/i18n/rbtz.o build/opt/third_party/icu4c-57.1/source/i18n/regexcmp.o build/opt/third_party/icu4c-57.1/source/i18n/regeximp.o build/opt/third_party/icu4c-57.1/source/i18n/regexst.o build/opt/third_party/icu4c-57.1/source/i18n/regextxt.o build/opt/third_party/icu4c-57.1/source/i18n/region.o build/opt/third_party/icu4c-57.1/source/i18n/reldatefmt.o build/opt/third_party/icu4c-57.1/source/i18n/reldtfmt.o build/opt/third_party/icu4c-57.1/source/i18n/rematch.o build/opt/third_party/icu4c-57.1/source/i18n/remtrans.o build/opt/third_party/icu4c-57.1/source/i18n/repattrn.o build/opt/third_party/icu4c-57.1/source/i18n/rulebasedcollator.o build/opt/third_party/icu4c-57.1/source/i18n/scientificnumberformatter.o build/opt/third_party/icu4c-57.1/source/i18n/scriptset.o build/opt/third_party/icu4c-57.1/source/i18n/search.o build/opt/third_party/icu4c-57.1/source/i18n/selfmt.o build/opt/third_party/icu4c-57.1/source/i18n/sharedbreakiterator.o build/opt/third_party/icu4c-57.1/source/i18n/simpletz.o build/opt/third_party/icu4c-57.1/source/i18n/smallintformatter.o build/opt/third_party/icu4c-57.1/source/i18n/smpdtfmt.o build/opt/third_party/icu4c-57.1/source/i18n/smpdtfst.o build/opt/third_party/icu4c-57.1/source/i18n/sortkey.o build/opt/third_party/icu4c-57.1/source/i18n/standardplural.o build/opt/third_party/icu4c-57.1/source/i18n/strmatch.o build/opt/third_party/icu4c-57.1/source/i18n/strrepl.o build/opt/third_party/icu4c-57.1/source/i18n/stsearch.o build/opt/third_party/icu4c-57.1/source/i18n/taiwncal.o build/opt/third_party/icu4c-57.1/source/i18n/timezone.o build/opt/third_party/icu4c-57.1/source/i18n/titletrn.o build/opt/third_party/icu4c-57.1/source/i18n/tmunit.o build/opt/third_party/icu4c-57.1/source/i18n/tmutamt.o build/opt/third_party/icu4c-57.1/source/i18n/tmutfmt.o build/opt/third_party/icu4c-57.1/source/i18n/tolowtrn.o build/opt/third_party/icu4c-57.1/source/i18n/toupptrn.o build/opt/third_party/icu4c-57.1/source/i18n/translit.o build/opt/third_party/icu4c-57.1/source/i18n/transreg.o build/opt/third_party/icu4c-57.1/source/i18n/tridpars.o build/opt/third_party/icu4c-57.1/source/i18n/tzfmt.o build/opt/third_party/icu4c-57.1/source/i18n/tzgnames.o build/opt/third_party/icu4c-57.1/source/i18n/tznames.o build/opt/third_party/icu4c-57.1/source/i18n/tznames_impl.o build/opt/third_party/icu4c-57.1/source/i18n/tzrule.o build/opt/third_party/icu4c-57.1/source/i18n/tztrans.o build/opt/third_party/icu4c-57.1/source/i18n/ucal.o build/opt/third_party/icu4c-57.1/source/i18n/ucln_in.o build/opt/third_party/icu4c-57.1/source/i18n/ucol.o build/opt/third_party/icu4c-57.1/source/i18n/ucol_res.o build/opt/third_party/icu4c-57.1/source/i18n/ucol_sit.o build/opt/third_party/icu4c-57.1/source/i18n/ucoleitr.o build/opt/third_party/icu4c-57.1/source/i18n/ucsdet.o build/opt/third_party/icu4c-57.1/source/i18n/udat.o build/opt/third_party/icu4c-57.1/source/i18n/udateintervalformat.o build/opt/third_party/icu4c-57.1/source/i18n/udatpg.o build/opt/third_party/icu4c-57.1/source/i18n/ufieldpositer.o build/opt/third_party/icu4c-57.1/source/i18n/uitercollationiterator.o build/opt/third_party/icu4c-57.1/source/i18n/ulocdata.o build/opt/third_party/icu4c-57.1/source/i18n/umsg.o build/opt/third_party/icu4c-57.1/source/i18n/unesctrn.o build/opt/third_party/icu4c-57.1/source/i18n/uni2name.o build/opt/third_party/icu4c-57.1/source/i18n/unum.o build/opt/third_party/icu4c-57.1/source/i18n/unumsys.o build/opt/third_party/icu4c-57.1/source/i18n/upluralrules.o build/opt/third_party/icu4c-57.1/source/i18n/uregex.o build/opt/third_party/icu4c-57.1/source/i18n/uregexc.o build/opt/third_party/icu4c-57.1/source/i18n/uregion.o build/opt/third_party/icu4c-57.1/source/i18n/usearch.o build/opt/third_party/icu4c-57.1/source/i18n/uspoof.o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_build.o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_conf.o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_impl.o build/opt/third_party/icu4c-57.1/source/i18n/uspoof_wsconf.o build/opt/third_party/icu4c-57.1/source/i18n/utf16collationiterator.o build/opt/third_party/icu4c-57.1/source/i18n/utf8collationiterator.o build/opt/third_party/icu4c-57.1/source/i18n/utmscale.o build/opt/third_party/icu4c-57.1/source/i18n/utrans.o build/opt/third_party/icu4c-57.1/source/i18n/valueformatter.o build/opt/third_party/icu4c-57.1/source/i18n/visibledigits.o build/opt/third_party/icu4c-57.1/source/i18n/vtzone.o build/opt/third_party/icu4c-57.1/source/i18n/vzone.o build/opt/third_party/icu4c-57.1/source/i18n/windtfmt.o build/opt/third_party/icu4c-57.1/source/i18n/winnmfmt.o build/opt/third_party/icu4c-57.1/source/i18n/wintzimpl.o build/opt/third_party/icu4c-57.1/source/i18n/zonemeta.o build/opt/third_party/icu4c-57.1/source/i18n/zrule.o build/opt/third_party/icu4c-57.1/source/i18n/ztrans.o ar @/tmp/tmp0gWgyr.lnk Skipping ranlib for thin archive build/opt/third_party/icu4c-57.1/source/libicu_i18n.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/socket_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/socket_utils.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/delete.h:36, from src/mongo/db/ops/delete.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/delete.h:36, from src/mongo/db/ops/delete.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/delete.h:36, from src/mongo/db/ops/delete.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/delete.h:36, from src/mongo/db/ops/delete.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_catalog_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_catalog_impl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/dbcheck.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/dbcheck.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/index_access_method.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/index_access_method.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repl/dbcheck.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repl/dbcheck.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repl/dbcheck.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_catalog_impl.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move 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:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_catalog_impl.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repl/dbcheck.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_catalog_impl.cpp:44: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_catalog_impl.cpp:44: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/index/index_access_method.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/index/index_access_method.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/index/index_access_method.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/index/index_access_method.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/ops/delete.h:36, from src/mongo/db/ops/delete.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libwrite_ops.a build/opt/mongo/db/ops/delete.o build/opt/mongo/db/ops/find_and_modify_result.o build/opt/mongo/db/ops/insert.o build/opt/mongo/db/ops/update.o build/opt/mongo/db/ops/write_ops_retryability.o build/opt/mongo/db/ops/single_write_result_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libwrite_ops.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/collection_compact.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/collection_compact.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/index_catalog_impl.cpp:44: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_compact.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/repl/dbcheck.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_compact.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_compact.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/index/index_access_method.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_compact.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/catalog/index_catalog_impl.h:33, from src/mongo/db/catalog/index_catalog_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::BsonRecord&}; _Tp = mongo::BsonRecord; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/index/btree_key_generator.h:35, from src/mongo/db/index/btree_access_method.h:35, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const std::pair&}; _Tp = std::pair; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector, std::allocator > >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:128:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 128 | __push_heap(_RandomAccessIterator __first, | ^~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Val_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2038 | __upper_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::TopKSorter::updateCutoff() [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2116:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2116 | return std::__upper_bound(__first, __last, __val, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 2117 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/catalog/index_catalog_impl.h:33, from src/mongo/db/catalog/index_catalog_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'mongo::Status mongo::IndexCatalogImpl::_indexRecords(mongo::OperationContext*, mongo::IndexCatalogEntry*, const std::vector&, int64_t*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__make_heap(_RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:326:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 326 | __make_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:326:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__pop_heap(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 243 | __pop_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, | ^~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:69, from src/mongo/db/concurrency/lock_manager.h:34, from src/mongo/db/concurrency/locker.h:36, from src/mongo/db/operation_context.h:39, from src/mongo/db/index/index_access_method.h:40, from src/mongo/db/index/btree_access_method.h:36, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc: In member function 'void std::deque<_Tp, _Alloc>::_M_range_initialize(_ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = std::_Deque_iterator, const std::pair&, const std::pair*>; _Tp = std::pair; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:441:7: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 441 | deque<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/deque.tcc:441:7: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:62, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tempbuf.h: In constructor 'std::_Temporary_buffer<_ForwardIterator, _Tp>::_Temporary_buffer(_ForwardIterator, std::_Temporary_buffer<_ForwardIterator, _Tp>::size_type) [with _ForwardIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Tp = std::pair]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tempbuf.h:243:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 243 | _Temporary_buffer<_ForwardIterator, _Tp>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tempbuf.h: In constructor 'std::_Temporary_buffer<_ForwardIterator, _Tp>::_Temporary_buffer(_ForwardIterator, std::_Temporary_buffer<_ForwardIterator, _Tp>::size_type) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Tp = std::pair]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tempbuf.h:243:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Val_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_ForwardIterator std::__upper_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Val_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2038 | __upper_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2038:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_OI std::move(_II, _II, _OI) [with _II = std::_Deque_iterator, std::pair&, std::pair*>; _OI = std::pair*]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:497:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 497 | move(_II __first, _II __last, _OI __result) | ^~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:497:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Val_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_ForwardIterator std::__lower_bound(_ForwardIterator, _ForwardIterator, const _Tp&, _Compare) [with _ForwardIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Tp = std::pair; _Compare = __gnu_cxx::__ops::_Iter_comp_val::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 966 | __lower_bound(_ForwardIterator __first, _ForwardIterator __last, | ^~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:966:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::_V2::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1328 | __rotate(_RandomAccessIterator __first, | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2471 | __merge_without_buffer(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2496 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2497 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2505 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2506 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2512 | std::__merge_without_buffer(__first, __first_cut, __new_middle, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2513 | __len11, __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2514 | std::__merge_without_buffer(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2515 | __len1 - __len11, __len2 - __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2755 | __inplace_stable_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2760:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2760 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2764:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2764 | std::__inplace_stable_sort(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2765:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2765 | std::__inplace_stable_sort(__middle, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2766 | std::__merge_without_buffer(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2767 | __middle - __first, | ~~~~~~~~~~~~~~~~~~~ 2768 | __last - __middle, | ~~~~~~~~~~~~~~~~~~ 2769 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::_Deque_iterator, std::pair&, std::pair*>; _OutputIterator = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2651:14: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2651 | return _GLIBCXX_MOVE3(__first2, __last2, | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2651:14: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_loop(_RandomAccessIterator1, _RandomAccessIterator1, _RandomAccessIterator2, _Distance, _Compare) [with _RandomAccessIterator1 = std::_Deque_iterator, std::pair&, std::pair*>; _RandomAccessIterator2 = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2659:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2659 | __merge_sort_loop(_RandomAccessIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2659:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::pair*; _OutputIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_with_buffer(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2699 | __merge_sort_with_buffer(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2689 | std::__insertion_sort(__first, __first + __chunk_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2714:26: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2714 | std::__merge_sort_loop(__first, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2715 | __step_size, __comp); | ~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_RandomAccessIterator std::_V2::__rotate(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator, std::random_access_iterator_tag) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1328 | __rotate(_RandomAccessIterator __first, | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1328:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_without_buffer(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2471 | __merge_without_buffer(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2471:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2496:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2496 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2497 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2505:26: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2505 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2506 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2512:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2512 | std::__merge_without_buffer(__first, __first_cut, __new_middle, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2513 | __len11, __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2514:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2514 | std::__merge_without_buffer(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2515 | __len1 - __len11, __len2 - __len22, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__inplace_stable_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2755 | __inplace_stable_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2755:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2760:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2760 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2764:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2764 | std::__inplace_stable_sort(__first, __middle, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2765:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2765 | std::__inplace_stable_sort(__middle, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2766:34: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2766 | std::__merge_without_buffer(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2767 | __middle - __first, | ~~~~~~~~~~~~~~~~~~~ 2768 | __last - __middle, | ~~~~~~~~~~~~~~~~~~ 2769 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _OutputIterator = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2633 | __move_merge(_InputIterator __first1, _InputIterator __last1, | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_OutputIterator std::__move_merge(_InputIterator, _InputIterator, _InputIterator, _InputIterator, _OutputIterator, _Compare) [with _InputIterator = std::pair*; _OutputIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2633:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 ar rcsTD build/opt/mongo/db/repl/libdbcheck.a build/opt/mongo/db/repl/dbcheck.o build/opt/mongo/db/repl/dbcheck_idl.o build/opt/mongo/db/repl/dbcheck_gen.o /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_sort_with_buffer(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2699 | __merge_sort_with_buffer(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2699:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2689:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2689 | std::__insertion_sort(__first, __first + __chunk_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2668:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2668 | __result = std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2669 | __first + __step_size, | ~~~~~~~~~~~~~~~~~~~~~~ 2670 | __first + __two_step, | ~~~~~~~~~~~~~~~~~~~~~ 2671 | __result, __comp); | ~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2676 | std::__move_merge(__first, __first + __step_size, | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2677 | __first + __step_size, __last, __result, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2676:24: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2692:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2692 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ Skipping ranlib for thin archive build/opt/mongo/db/repl/libdbcheck.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/index_catalog_entry_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/index_catalog_entry_impl.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = true; _II = std::pair*; _OI = std::_Deque_iterator, std::pair&, std::pair*>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:438:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 438 | __copy_move_a2(_II __first, _II __last, _OI __result) | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h: In function '_BI2 std::__copy_move_backward_a2(_BI1, _BI1, _BI2) [with bool _IsMove = true; _BI1 = std::pair*; _BI2 = std::_Deque_iterator, std::pair&, std::pair*>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:613:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 613 | __copy_move_backward_a2(_BI1 __first, _BI1 __last, _BI2 __result) | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function '_BidirectionalIterator1 std::__rotate_adaptive(_BidirectionalIterator1, _BidirectionalIterator1, _BidirectionalIterator1, _Distance, _Distance, _BidirectionalIterator2, _Distance) [with _BidirectionalIterator1 = std::_Deque_iterator, std::pair&, std::pair*>; _BidirectionalIterator2 = std::pair*; _Distance = int]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2372 | __rotate_adaptive(_BidirectionalIterator1 __first, | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2372:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2384:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2384 | __buffer_end = _GLIBCXX_MOVE3(__middle, __last, __buffer); | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2395:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2395 | __buffer_end = _GLIBCXX_MOVE3(__first, __middle, __buffer); | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_adaptive(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare) [with _BidirectionalIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Distance = int; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2410 | __merge_adaptive(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2419:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2419 | _Pointer __buffer_end = _GLIBCXX_MOVE3(__first, __middle, __buffer); | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2425:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2425 | _Pointer __buffer_end = _GLIBCXX_MOVE3(__middle, __last, __buffer); | ^~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 686 | return std::__copy_move_backward_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 687 | std::__miter_base(__last), | ~~~~~~~~~~~~~~~~~~~~~~~~~~ 688 | __result); | ~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:686:48: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2440 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2441 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2449 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2450 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2455 | = std::__rotate_adaptive(__first_cut, __middle, __second_cut, | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2456 | __len1 - __len11, __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2457 | __buffer_size); | ~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2455:30: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2458 | std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2459 | __len22, __buffer, __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2460 | std::__merge_adaptive(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2461 | __len1 - __len11, | ~~~~~~~~~~~~~~~~~ 2462 | __len2 - __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2463 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/char_traits.h:39, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/string:40, from src/mongo/base/status.h:34, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 505 | return std::__copy_move_a2(std::__miter_base(__first), | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 506 | std::__miter_base(__last), __result); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algobase.h:505:39: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__stable_sort_adaptive(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Distance, _Compare) [with _RandomAccessIterator = std::_Deque_iterator, std::pair&, std::pair*>; _Pointer = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2726 | __stable_sort_adaptive(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2735:31: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2735 | std::__stable_sort_adaptive(__first, __middle, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2736 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2737:31: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2737 | std::__stable_sort_adaptive(__middle, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2738 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2742:33: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2742 | std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2743:33: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2743 | std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'const std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 2745 | std::__merge_adaptive(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2746 | _Distance(__middle - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2747 | _Distance(__last - __middle), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2748 | __buffer, __buffer_size, | ~~~~~~~~~~~~~~~~~~~~~~~~ 2749 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/catalog_control.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/catalog_control.cpp /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::NoLimitSorter::sort() [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 4995 | _TmpBuf __buf(__first, std::distance(__first, __last)); | ^~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::NoLimitSorter::spill() [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 4995 | _TmpBuf __buf(__first, std::distance(__first, __last)); | ^~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type 'std::_Deque_iterator, std::pair&, std::pair*>' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/deque:67, from src/mongo/db/concurrency/lock_manager.h:34, from src/mongo/db/concurrency/locker.h:36, from src/mongo/db/operation_context.h:39, from src/mongo/db/index/index_access_method.h:40, from src/mongo/db/index/btree_access_method.h:36, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h: In member function 'mongo::sorter::NoLimitSorter::Iterator* mongo::sorter::NoLimitSorter::done() [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 1906 | _M_range_initialize(__first, __last, | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_deque.h:1906:4: note: parameter passing for argument of type 'std::_Deque_iterator, const std::pair&, const std::pair*>' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__merge_adaptive(_BidirectionalIterator, _BidirectionalIterator, _BidirectionalIterator, _Distance, _Distance, _Pointer, _Distance, _Compare) [with _BidirectionalIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Distance = int; _Pointer = std::pair*; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2410 | __merge_adaptive(_BidirectionalIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2410:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2440:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2440 | = std::__lower_bound(__middle, __last, *__first_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2441 | __gnu_cxx::__ops::__iter_comp_val(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2449:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2449 | = std::__upper_bound(__first, __middle, *__second_cut, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2450 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1443:27: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1443 | return std::__rotate(__first, __middle, __last, | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 1444 | std::__iterator_category(__first)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2458:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2458 | std::__merge_adaptive(__first, __first_cut, __new_middle, __len11, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2459 | __len22, __buffer, __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2460:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2460 | std::__merge_adaptive(__new_middle, __second_cut, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2461 | __len1 - __len11, | ~~~~~~~~~~~~~~~~~ 2462 | __len2 - __len22, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2463 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__stable_sort_adaptive(_RandomAccessIterator, _RandomAccessIterator, _Pointer, _Distance, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >; _Pointer = std::pair*; _Distance = int; _Compare = __gnu_cxx::__ops::_Iter_comp_iter::STLComparator>]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2726 | __stable_sort_adaptive(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2726:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2735:31: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2735 | std::__stable_sort_adaptive(__first, __middle, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2736 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2737:31: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2737 | std::__stable_sort_adaptive(__middle, __last, __buffer, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2738 | __buffer_size, __comp); | ~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2742:33: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2742 | std::__merge_sort_with_buffer(__first, __middle, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2743:33: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2743 | std::__merge_sort_with_buffer(__middle, __last, __buffer, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2745:28: note: parameter passing for argument of type 'const __gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2745 | std::__merge_adaptive(__first, __middle, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ 2746 | _Distance(__middle - __first), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2747 | _Distance(__last - __middle), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2748 | __buffer, __buffer_size, | ~~~~~~~~~~~~~~~~~~~~~~~~ 2749 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::TopKSorter::sort() [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4995 | _TmpBuf __buf(__first, std::distance(__first, __last)); | ^~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'void mongo::sorter::TopKSorter::spill() [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4995 | _TmpBuf __buf(__first, std::distance(__first, __last)); | ^~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:2116:32: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 2116 | return std::__upper_bound(__first, __last, __val, | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ 2117 | __gnu_cxx::__ops::__val_comp_iter(__comp)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/index/btree_key_generator.h:35, from src/mongo/db/index/btree_access_method.h:35, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::sorter::TopKSorter::add(const Key&, const Value&) [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:397:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 397 | std::__make_heap(__first, __last, __cmp); | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:320:19: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 320 | std::__pop_heap(__first, __last, __last, __cmp); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from build/opt/mongo/base/error_codes.h:37, from src/mongo/base/status.h:36, from src/mongo/db/index/btree_access_method.h:34, from src/mongo/db/index/index_access_method.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'mongo::sorter::TopKSorter::Iterator* mongo::sorter::TopKSorter::done() [with Key = mongo::BSONObj; Value = mongo::RecordId; Comparator = mongo::BtreeExternalSortComparison]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4995:15: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4995 | _TmpBuf __buf(__first, std::distance(__first, __last)); | ^~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:4998:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 4998 | std::__inplace_stable_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:5000:29: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector, std::allocator > > >' changed in GCC 7.1 5000 | std::__stable_sort_adaptive(__first, __last, __buf.begin(), | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5001 | _DistanceType(__buf.size()), __comp); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/collection_impl.h:34, from src/mongo/db/catalog/collection_compact.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/catalog/index_catalog_entry_impl.h:41, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/catalog/index_catalog_entry_impl.h:41, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/index/libindex_access_method.a build/opt/mongo/db/index/index_access_method.o Skipping ranlib for thin archive build/opt/mongo/db/index/libindex_access_method.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/collection_info_cache_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/collection_info_cache_impl.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/catalog_control.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/catalog_control.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/catalog_control.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/catalog_control.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/collection_info_cache_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/collection_info_cache_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/database_holder_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/database_holder_impl.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/collection_info_cache_impl.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/collection_info_cache_impl.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_holder_impl.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_holder_impl.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_holder_impl.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_holder_impl.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/index_catalog_entry_impl.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/catalog_control.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection_info_cache_impl.h:33, from src/mongo/db/catalog/collection_info_cache_impl.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/geo/big_polygon.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/geo/big_polygon.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/aggregation_request.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/aggregation_request.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/catalog/database_holder_impl.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/geo/big_polygon.h:33, from src/mongo/db/geo/big_polygon.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const Vector3&}; _Tp = Vector3; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/geo/big_polygon.h:33, from src/mongo/db/geo/big_polygon.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'const S2Polyline& mongo::BigSimplePolygon::GetLineBorder() const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/rs_local_client.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/client/rs_local_client.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/aggregation_request.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/aggregation_request.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/aggregation_request.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libcatalog_impl.a build/opt/mongo/db/catalog/catalog_control.o build/opt/mongo/db/catalog/collection_compact.o build/opt/mongo/db/catalog/collection_impl.o build/opt/mongo/db/catalog/collection_info_cache_impl.o build/opt/mongo/db/catalog/database_holder_impl.o build/opt/mongo/db/catalog/database_impl.o build/opt/mongo/db/catalog/index_catalog_entry_impl.o build/opt/mongo/db/catalog/index_catalog_impl.o build/opt/mongo/db/catalog/index_consistency.o build/opt/mongo/db/catalog/index_create_impl.o build/opt/mongo/db/catalog/private/record_store_validate_adaptor.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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/opt/mongo/db/catalog/libcatalog_impl.a In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/aggregation_request.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog.cpp src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/rs_local_client.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/rs_local_client.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/rs_local_client.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/rs_local_client.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/aggregation_request.cpp: In static member function 'static mongo::StatusWith > > mongo::AggregationRequest::parsePipelineFromBSON(mongo::BSONElement)': src/mongo/db/pipeline/aggregation_request.cpp:83:21: warning: redundant move in return statement [-Wredundant-move] 83 | return std::move(pipeline); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/pipeline/aggregation_request.cpp:83:21: note: remove 'std::move' call In file included from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:53: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:151:42: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 151 | memset(this, 0, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:160:43: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 160 | memcpy(this, &e, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/oplog.cpp:50: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/pipeline/aggregation_request.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/oplog.cpp:50: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/oplog.cpp:50: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/oplog.cpp:50: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/pipeline/aggregation_request.cpp:68:34: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 68 | StatusWith> AggregationRequest::parsePipelineFromBSON( | ^~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/database.h:40, from src/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/pipeline/aggregation_request.cpp: In static member function 'static mongo::StatusWith mongo::AggregationRequest::parseFromBSON(mongo::NamespaceString, const mongo::BSONObj&, boost::optional)': src/mongo/db/pipeline/aggregation_request.cpp:99:75: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 99 | auto pipeline = AggregationRequest::parsePipelineFromBSON(pipelineElem); | ^ src/mongo/db/pipeline/aggregation_request.cpp:143:63: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 143 | auto maxTimeMs = QueryRequest::parseMaxTimeMS(elem); | ^ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/rs_local_client.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/data_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/data_file.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_buffer_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_buffer_collection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_buffer_collection.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_buffer_collection.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/socket_exception.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/socket_exception.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_buffer_collection.cpp:44: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_buffer_collection.cpp:44: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/geo/geometry_container.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/geo/geometry_container.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/journal_latency_test_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/oplog.cpp:50: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/oplog.h:34, from src/mongo/db/repl/oplog.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::repl::OpTime&}; _Tp = mongo::repl::OpTime; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::BSONObj, mongo::Timestamp, long long int}; _Tp = mongo::InsertStatement; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:43: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:43: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/repl/oplog.cpp: In function 'std::vector mongo::repl::logInsertOps(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, mongo::Session*, std::vector::const_iterator, std::vector::const_iterator, bool, mongo::Date_t)': src/mongo/db/repl/oplog.cpp:510:21: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 510 | std::vector logInsertOps(OperationContext* opCtx, | ^~~~~~~~~~~~ src/mongo/db/repl/oplog.cpp:510:21: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/repl/oplog.h:34, from src/mongo/db/repl/oplog.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/geo/libgeoparser.a build/opt/mongo/db/geo/geoparser.o build/opt/mongo/db/geo/geometry_container.o Skipping ranlib for thin archive build/opt/mongo/db/geo/libgeoparser.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/compressor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/compressor.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_buffer_collection.cpp:44: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/repl/oplog.cpp: In function 'mongo::NamespaceString mongo::repl::{anonymous}::parseUUIDorNs(mongo::OperationContext*, const char*, const mongo::BSONElement&, mongo::BSONObj&)': src/mongo/db/repl/oplog.cpp:772:41: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 772 | auto statusWithUUID = UUID::parse(ui); | ^ In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj.h:46, from src/mongo/db/repl/oplog.h:37, from src/mongo/db/repl/oplog.cpp:35: src/mongo/db/repl/oplog.cpp: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = mongo::Status; _Functor = mongo::repl::{anonymous}::; _ArgTypes = {mongo::OperationContext*, const char*, const mongo::BSONElement&, mongo::BSONObj&, const mongo::repl::OpTime&, mongo::repl::OplogApplication::Mode}]': src/mongo/db/repl/oplog.cpp:760:54: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 760 | CollectionUUID uuid = uassertStatusOK(UUID::parse(ui)); | ~~~~~~~~~~~^~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ src/mongo/db/repl/oplog.cpp: In function 'mongo::Status mongo::repl::applyOperation_inlock(mongo::OperationContext*, mongo::Database*, const mongo::BSONObj&, bool, mongo::repl::OplogApplication::Mode, mongo::repl::IncrementOpsAppliedStatsFn)': src/mongo/db/repl/oplog.cpp:1120:48: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 1120 | auto uuid = uassertStatusOK(UUID::parse(fieldUI)); | ~~~~~~~~~~~^~~~~~~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/oplog.h:34, from src/mongo/db/repl/oplog.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/repl/oplog.cpp:50: src/mongo/db/catalog/collection.h:481:99: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 481 | return this->_impl().insertDocuments(opCtx, begin, end, opDebug, enforceQuota, fromMigrate); | ^ src/mongo/db/catalog/collection.h:481:99: note: parameter passing for argument of type 'const const_iterator' {aka 'const __gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/storage/mmap_v1/journal_latency_test_cmd.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/liboplog_buffer_collection.a build/opt/mongo/db/repl/oplog_buffer_collection.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_buffer_collection.a ar rcsTD build/opt/mongo/db/commands/libtest_commands_enabled.a build/opt/mongo/db/commands/test_commands_enabled.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libtest_commands_enabled.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/md5.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/md5.cpp ar rcsTD build/opt/mongo/util/libmd5.a build/opt/mongo/util/md5.o build/opt/mongo/util/password_digest.o Skipping ranlib for thin archive build/opt/mongo/util/libmd5.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/private/ssl_expiration.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/private/ssl_expiration.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/ssl_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/ssl_manager.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/ssl_manager_openssl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/ssl_manager_openssl.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/ssl_parameters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/ssl_parameters.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/murmurhash3/MurmurHash3.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc -Ibuild/opt -Isrc src/third_party/murmurhash3/MurmurHash3.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_commands_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/util/net/ssl_manager.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/util/net/ssl_manager.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/util/net/ssl_manager.cpp:45: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/util/net/ssl_manager.cpp:45: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.h:38, from src/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.cpp:33: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:151:42: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 151 | memset(this, 0, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:160:43: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 160 | memcpy(this, &e, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/util/net/ssl_manager.cpp:45: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/aggregation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/aggregation.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/libaggregation.a build/opt/mongo/db/pipeline/aggregation.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libaggregation.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/kill_sessions_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/kill_sessions_common.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/free_mon/free_mon_commands_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/python src/mongo/db/fts/unicode/gen_diacritic_list.py src/third_party/unicode-8.0.0/PropList.txt build/opt/mongo/db/fts/unicode/codepoints_diacritic_list.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/unicode/codepoints_diacritic_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/fts/unicode/codepoints_diacritic_list.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/oplog_hack.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/oplog_hack.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/capped_utils.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/capped_utils.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/catalog/create_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/catalog/create_collection.cpp ar rcsTD build/opt/mongo/util/net/libssl_manager.a build/opt/mongo/util/net/private/ssl_expiration.o build/opt/mongo/util/net/ssl_manager.o build/opt/mongo/util/net/ssl_parameters.o build/opt/mongo/util/net/ssl_manager_openssl.o build/opt/mongo/util/net/ssl_stream.o Skipping ranlib for thin archive build/opt/mongo/util/net/libssl_manager.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/views/durable_view_catalog.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/views/durable_view_catalog.cpp ar rcsTD build/opt/mongo/db/storage/liboplog_hack.a build/opt/mongo/db/storage/oplog_hack.o Skipping ranlib for thin archive build/opt/mongo/db/storage/liboplog_hack.a ar rcsTD build/opt/mongo/db/libserver_options.a build/opt/mongo/db/server_options_helpers.o Skipping ranlib for thin archive build/opt/mongo/db/libserver_options.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/rollback_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/rollback_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/capped_utils.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/capped_utils.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/capped_utils.cpp:45: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/capped_utils.cpp:45: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/create_collection.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/create_collection.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/views/durable_view_catalog.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/views/durable_view_catalog.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/create_collection.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/create_collection.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/views/durable_view_catalog.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/repl/rollback_impl.h:34, from src/mongo/db/repl/rollback_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/repl/rollback_impl.h:34, from src/mongo/db/repl/rollback_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/views/durable_view_catalog.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/repl/rollback_impl.h:34, from src/mongo/db/repl/rollback_impl.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/repl/rollback_impl.h:34, from src/mongo/db/repl/rollback_impl.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/catalog/capped_utils.cpp:45: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/views/durable_view_catalog.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/catalog/create_collection.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/rollback_checker.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/rollback_checker.cpp In file included from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonobj.h:46, from src/mongo/db/catalog/create_collection.h:34, from src/mongo/db/catalog/create_collection.cpp:35: src/mongo/db/catalog/create_collection.cpp: In lambda function: src/mongo/db/catalog/create_collection.cpp:172:56: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 172 | auto uuid = uassertStatusOK(UUID::parse(ui)); | ~~~~~~~~~~~^~~~ src/mongo/util/assert_util.h:374:67: note: in definition of macro 'uassertStatusOK' 374 | #define uassertStatusOK(...) ::mongo::uassertStatusOKWithLocation(__VA_ARGS__, __FILE__, __LINE__) | ^~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/repl/rollback_impl.h:34, from src/mongo/db/repl/rollback_impl.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libcatalog_helpers.a build/opt/mongo/db/catalog/capped_utils.o build/opt/mongo/db/catalog/coll_mod.o build/opt/mongo/db/catalog/create_collection.o build/opt/mongo/db/catalog/drop_collection.o build/opt/mongo/db/catalog/drop_database.o build/opt/mongo/db/catalog/drop_indexes.o build/opt/mongo/db/catalog/rename_collection.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libcatalog_helpers.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/dist_lock_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/dist_lock_manager.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/dist_lock_ping_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/dist_lock_ping_info.cpp ar rcsTD build/opt/mongo/s/catalog/libdist_lock_manager.a build/opt/mongo/s/catalog/dist_lock_manager.o build/opt/mongo/s/catalog/dist_lock_ping_info.o Skipping ranlib for thin archive build/opt/mongo/s/catalog/libdist_lock_manager.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/sync_source_resolver.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/sync_source_resolver.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/optime.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/optime.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/service_executor_adaptive.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/transport/service_executor_adaptive.cpp src/mongo/db/repl/rollback_impl.cpp: In member function 'boost::optional mongo::repl::RollbackImpl::_findDocumentById(mongo::OperationContext*, mongo::UUID, mongo::NamespaceString, mongo::BSONElement)': src/mongo/db/repl/rollback_impl.cpp:760:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 760 | boost::optional RollbackImpl::_findDocumentById(OperationContext* opCtx, | ^~~~~~~~~~~~ src/mongo/db/repl/rollback_impl.cpp: In member function 'virtual void mongo::repl::RollbackImpl::_writeRollbackFileForNamespace(mongo::OperationContext*, mongo::UUID, mongo::NamespaceString, const SimpleBSONObjUnorderedSet&)': src/mongo/db/repl/rollback_impl.cpp:839:78: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 839 | auto document = _findDocumentById(opCtx, uuid, nss, id.firstElement()); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/sync_source_resolver.h:37, from src/mongo/db/repl/sync_source_resolver.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/query_solution.h:38, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/sync_source_resolver.h:37, from src/mongo/db/repl/sync_source_resolver.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/sync_source_resolver.h:37, from src/mongo/db/repl/sync_source_resolver.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/refresh_sessions_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/refresh_sessions_gen.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/sync_source_resolver.h:37, from src/mongo/db/repl/sync_source_resolver.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/librollback_impl.a build/opt/mongo/db/repl/rollback_impl.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librollback_impl.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_migration_critical_section.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_migration_critical_section.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/refresh_sessions_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/refresh_sessions_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/refresh_sessions_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/transport/service_executor_adaptive.cpp: In member function 'void mongo::transport::ServiceExecutorAdaptive::_workerThreadRoutine(int, std::__cxx11::list::iterator)': src/mongo/transport/service_executor_adaptive.cpp:555:6: note: parameter passing for argument of type 'std::__cxx11::list::iterator' {aka 'std::_List_iterator'} changed in GCC 7.1 555 | void ServiceExecutorAdaptive::_workerThreadRoutine( | ^~~~~~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/refresh_sessions_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/query/query_solution.h:40, from src/mongo/db/query/plan_executor.h:39, from src/mongo/db/clientcursor.h:40, from src/mongo/client/fetcher.h:43, from src/mongo/db/repl/sync_source_resolver.h:37, from src/mongo/db/repl/sync_source_resolver.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/rpc/metadata/client_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/rpc/metadata/client_metadata.cpp ar rcsTD build/opt/mongo/db/repl/libinitial_syncer.a build/opt/mongo/db/repl/initial_syncer.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libinitial_syncer.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/sasl_plain_client_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/sasl_plain_client_conversation.cpp ar rcsTD build/opt/mongo/db/storage/mmap_v1/libpaths.a build/opt/mongo/db/storage/mmap_v1/paths.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libpaths.a ar rcsTD build/opt/mongo/db/pipeline/libfield_path.a build/opt/mongo/db/pipeline/field_path.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libfield_path.a ar rcsTD build/opt/mongo/db/storage/kv/libkv_storage_engine.a build/opt/mongo/db/storage/kv/kv_storage_engine.o Skipping ranlib for thin archive build/opt/mongo/db/storage/kv/libkv_storage_engine.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/connection_pool.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/executor/connection_pool.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/refresh_sessions_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/executor/connection_pool.cpp:44: src/mongo/util/lru_cache.h: In instantiation of 'boost::optional mongo::LRUCache::add(const K&, V) [with K = mongo::executor::ConnectionPool::ConnectionInterface*; V = std::shared_ptr; Hash = std::hash; KeyEqual = std::equal_to]': src/mongo/executor/connection_pool.cpp:610:44: required from here src/mongo/util/lru_cache.h:111:36: warning: redundant move in return statement [-Wredundant-move] 111 | return std::move(result); | ^ src/mongo/util/lru_cache.h:111:36: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libsync_source_resolver.a build/opt/mongo/db/repl/sync_source_resolver.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libsync_source_resolver.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/instance.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/instance.cpp ar rcsTD build/opt/mongo/db/libserveronly.a build/opt/mongo/db/instance.o Skipping ranlib for thin archive build/opt/mongo/db/libserveronly.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_push.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_push.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from build/opt/mongo/db/refresh_sessions_gen.h:14, from build/opt/mongo/db/refresh_sessions_gen.cpp:9: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::LogicalSessionRecord}; _Tp = mongo::LogicalSessionRecord; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::RefreshSessionsCmdFromClusterMember::parseProtected(const mongo::IDLParserErrorContext&, const mongo::BSONObj&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:62, from src/mongo/executor/connection_pool.h:34, from src/mongo/executor/connection_pool.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__push_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator > > >*, std::vector > > > > >; _Distance = int; _Tp = std::pair > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_val]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:128:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > > >*, std::vector > > > > >' changed in GCC 7.1 128 | __push_heap(_RandomAccessIterator __first, | ^~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/executor/connection_pool.h:34, from src/mongo/executor/connection_pool.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {std::pair > > >}; _Tp = std::pair > > >; _Alloc = std::allocator > > > >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector > > > >::iterator' {aka '__gnu_cxx::__normal_iterator > > >*, std::vector > > > > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:62, from src/mongo/executor/connection_pool.h:34, from src/mongo/executor/connection_pool.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator > > >*, std::vector > > > > >; _Distance = int; _Tp = std::pair > > >; _Compare = __gnu_cxx::__ops::_Iter_comp_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > > >*, std::vector > > > > >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_push.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_push.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/rpc/libclient_metadata.a build/opt/mongo/rpc/metadata/client_metadata.o build/opt/mongo/rpc/metadata/client_metadata_ismaster.o Skipping ranlib for thin archive build/opt/mongo/rpc/libclient_metadata.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2latlngrect.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2latlngrect.cc In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/executor/connection_pool.h:34, from src/mongo/executor/connection_pool.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'mongo::future_details::Future > > mongo::executor::ConnectionPool::SpecificPool::getConnection(const mongo::HostAndPort&, mongo::Milliseconds, std::unique_lock)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator > > >*, std::vector > > > > >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/logfile.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/logfile.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/granularity_rounder_preferred_numbers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/accumulator.h:37, from src/mongo/db/pipeline/accumulator_push.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::Value&}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/accumulator.h:37, from src/mongo/db/pipeline/accumulator_push.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual void mongo::AccumulatorPush::processInternal(const mongo::Value&, bool)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/granularity_rounder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/granularity_rounder.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.h:36, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator) [with _Key = mongo::RecordId; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2504:5: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 2504 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(const _Key&) [with _Key = mongo::RecordId; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2525:4: note: parameter passing for argument of type 'std::_Rb_tree_const_iterator >' changed in GCC 7.1 2525 | _M_erase_aux(__first++); | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual void mongo::EphemeralForTestRecordStore::InsertChange::rollback()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1220:2: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 1220 | _M_erase_aux(__position); | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'virtual void mongo::EphemeralForTestRecordStore::cappedTruncateAfter(mongo::OperationContext*, mongo::RecordId, bool)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:1220:2: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 1220 | _M_erase_aux(__position); | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple, std::tuple<>}; _Key = mongo::RecordId; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2452:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 2452 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.h:36, from src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'virtual mongo::StatusWith mongo::EphemeralForTestRecordStore::insertRecord(mongo::OperationContext*, const char*, int, mongo::Timestamp, bool)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'virtual mongo::Status mongo::EphemeralForTestRecordStore::insertRecordsWithDocWriter(mongo::OperationContext*, const mongo::DocWriter* const*, const mongo::Timestamp*, size_t, mongo::RecordId*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'virtual void mongo::EphemeralForTestRecordStore::RemoveChange::rollback()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/granularity_rounder.h:37, from src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/granularity_rounder.h:37, from src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/shim_intel_decimal128.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/IntelRDFPMathLib20U1/LIBRARY src/third_party/shim_intel_decimal128.cpp ar rcsTD build/opt/third_party/libshim_intel_decimal128.a build/opt/third_party/shim_intel_decimal128.o Skipping ranlib for thin archive build/opt/third_party/libshim_intel_decimal128.a ar rcsTD build/opt/mongo/db/libmongod_options.a build/opt/mongo/db/mongod_options.o Skipping ranlib for thin archive build/opt/mongo/db/libmongod_options.a ar rcsTD build/opt/mongo/db/auth/libuser.a build/opt/mongo/db/auth/user.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libuser.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/apply_ops_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/repl/apply_ops_gen.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/apply_ops.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/apply_ops.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/granularity_rounder.h:37, from src/mongo/db/pipeline/granularity_rounder.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/expression_context.h:43, from src/mongo/db/pipeline/granularity_rounder.h:37, from src/mongo/db/pipeline/granularity_rounder.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/pipeline/granularity_rounder.h:33, from src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In constructor 'std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = double; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:622:7: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 622 | vector(initializer_list __l, | ^~~~~~ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp: In function 'void __static_initialization_and_destruction_0(int, int)': src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:44:49: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 44 | const vector r5Series{10, 16, 25, 40, 63}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:46:80: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 46 | const vector r10Series{100, 125, 160, 200, 250, 315, 400, 500, 630, 800}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:49:80: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 49 | 315, 355, 400, 450, 500, 560, 630, 710, 800, 900}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:53:95: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 53 | 475, 500, 530, 560, 600, 630, 670, 710, 750, 800, 850, 900, 950}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:57:90: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 57 | 515, 545, 575, 615, 650, 690, 730, 775, 825, 875, 925, 975}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:61:42: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 61 | const vector series125{10, 20, 50}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:65:53: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 65 | const vector e6Series{10, 15, 22, 33, 47, 68}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:67:78: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 67 | const vector e12Series{10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:70:78: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 70 | 33, 36, 39, 43, 47, 51, 56, 62, 68, 75, 82, 91}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:75:90: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 75 | 562, 590, 619, 649, 681, 715, 750, 787, 825, 866, 909, 953}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:83:90: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 83 | 750, 768, 787, 806, 825, 845, 866, 887, 909, 931, 953, 976}; | ^ src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:96:63: note: parameter passing for argument of type 'std::initializer_list' changed in GCC 7.1 96 | 866, 876, 887, 898, 909, 920, 931, 942, 953, 965, 976, 988}; | ^ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/pipeline/granularity_rounder.h:33, from src/mongo/db/pipeline/granularity_rounder_preferred_numbers.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::Decimal128}; _Tp = mongo::Decimal128; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Decimal128}; _Tp = mongo::Decimal128; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/apply_ops_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/apply_ops_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/match_details.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/match_details.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/apply_ops_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/libgranularity_rounder.a build/opt/mongo/db/pipeline/granularity_rounder.o build/opt/mongo/db/pipeline/granularity_rounder_powers_of_two.o build/opt/mongo/db/pipeline/granularity_rounder_preferred_numbers.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move 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/opt/mongo/db/pipeline/libgranularity_rounder.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplogreader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplogreader.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/apply_ops_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/namespace_string.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/namespace_string.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/apply_ops.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/apply_ops.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/apply_ops.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/apply_ops.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/apply_ops_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libnamespace_string.a build/opt/mongo/db/namespace_string.o Skipping ranlib for thin archive build/opt/mongo/db/libnamespace_string.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_last.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_last.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_min_max.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_min_max.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_last.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_last.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_add_to_set.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_add_to_set.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_min_max.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_min_max.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_add_to_set.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_add_to_set.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/apply_ops.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/accumulator_std_dev.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/accumulator_std_dev.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulator.h:35, from src/mongo/db/pipeline/accumulator_min_max.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = boost::intrusive_ptr; _Functor = boost::intrusive_ptr (*)(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&); _ArgTypes = {const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&}]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ In file included from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_min_max.cpp:33: src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_std_dev.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/pipeline/expression.h:42, from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_std_dev.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/count_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/count_cmd.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/list_collections.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/list_collections.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/apply_ops.h:31, from src/mongo/db/repl/apply_ops.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::BSONObj&}; _Tp = mongo::repl::OplogEntry; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In static member function 'static mongo::repl::MultiApplier::Operations mongo::repl::ApplyOps::extractOperations(const mongo::repl::OplogEntry&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/repl/liboplog.a build/opt/mongo/db/repl/apply_ops.o build/opt/mongo/db/repl/do_txn.o build/opt/mongo/db/repl/oplog.o build/opt/mongo/db/repl/apply_ops_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/killcursors_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/killcursors_cmd.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/functional:59, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/config/no_tr1/functional.hpp:21, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/smart_ptr/intrusive_ptr.hpp:24, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/intrusive_ptr.hpp:16, from src/mongo/db/pipeline/accumulator.h:35, from src/mongo/db/pipeline/accumulator_std_dev.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h: In static member function 'static _Res std::_Function_handler<_Res(_ArgTypes ...), _Functor>::_M_invoke(const std::_Any_data&, _ArgTypes&& ...) [with _Res = boost::intrusive_ptr; _Functor = boost::intrusive_ptr (*)(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&); _ArgTypes = {const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&}]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/std_function.h:286:40: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 286 | std::forward<_ArgTypes>(__args)...); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/list_collections.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/list_collections.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/accumulator.h:41, from src/mongo/db/pipeline/accumulator_std_dev.cpp:33: src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ src/mongo/db/pipeline/expression.h: In static member function 'static boost::intrusive_ptr mongo::ExpressionNaryBase::parse(const boost::intrusive_ptr&, mongo::BSONElement, const mongo::VariablesParseState&) [with SubClass = mongo::ExpressionFromAccumulator]': src/mongo/db/pipeline/expression.h:314:45: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 314 | static boost::intrusive_ptr parse( | ^~~~~ src/mongo/db/pipeline/expression.h:319:26: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 319 | ExpressionVector args = parseArguments(expCtx, bsonExpr, vps); | ^~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_cmd.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_cmd.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/list_collections.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_cmd.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/list_collections.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_cmd.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_cmd.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/pipeline/libaccumulator.a build/opt/mongo/db/pipeline/accumulation_statement.o build/opt/mongo/db/pipeline/accumulator_add_to_set.o build/opt/mongo/db/pipeline/accumulator_avg.o build/opt/mongo/db/pipeline/accumulator_first.o build/opt/mongo/db/pipeline/accumulator_last.o build/opt/mongo/db/pipeline/accumulator_min_max.o build/opt/mongo/db/pipeline/accumulator_push.o build/opt/mongo/db/pipeline/accumulator_std_dev.o build/opt/mongo/db/pipeline/accumulator_sum.o build/opt/mongo/db/pipeline/accumulator_merge_objects.o src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libaccumulator.a src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/geo_near_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/geo_near_cmd.cpp src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/killcursors_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/killcursors_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/killcursors_cmd.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/killcursors_cmd.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/geo_near_cmd.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/geo_near_cmd.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/geo_near_cmd.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/geo_near_cmd.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/count_cmd.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/list_collections.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/killcursors_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/list_databases.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/list_databases.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/write_commands/write_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/write_commands/write_commands.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/get_last_error.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/get_last_error.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/geo_near_cmd.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/list_databases.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/list_databases.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/list_databases.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/list_databases.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/get_last_error.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/write_commands/write_commands.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/write_commands/write_commands.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/write_commands/write_commands.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/get_last_error.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/write_commands/write_commands.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/get_last_error.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/get_last_error.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/repair_cursor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/repair_cursor.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/commands/list_databases.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/get_last_error.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/create_indexes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/create_indexes.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/repair_cursor.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/repair_cursor.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/repair_cursor.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/repair_cursor.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/kill_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/kill_op.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/write_commands/write_commands.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/create_indexes.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/create_indexes.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/create_indexes.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/create_indexes.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op.cpp:43: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op.cpp:43: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/base/deinitializer_context.h:38, from src/mongo/base/init.h:46, from src/mongo/db/commands/write_commands/write_commands.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::StatusWith&}; _Tp = mongo::StatusWith; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'void mongo::{anonymous}::serializeReply(mongo::OperationContext*, mongo::{anonymous}::ReplyStyle, bool, size_t, mongo::WriteResult, mongo::BSONObjBuilder*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/repair_cursor.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/mmap_v1_noinit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_noinit.cpp ar rcsTD build/opt/mongo/db/libsessions_collection_sharded.a build/opt/mongo/db/sessions_collection_sharded.o Skipping ranlib for thin archive build/opt/mongo/db/libsessions_collection_sharded.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_engine_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_engine_init.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/cluster_write.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/write_ops/cluster_write.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/shard_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/client/shard_local.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/commands/create_indexes.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/shard_local.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/shard_local.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/util/libsecure_compare_memory.a build/opt/mongo/util/secure_compare_memory.o Skipping ranlib for thin archive build/opt/mongo/util/libsecure_compare_memory.a In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/shard_local.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/geo/r2_region_coverer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/geo/r2_region_coverer.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/shard_local.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/geo/r2_region_coverer.h:35, from src/mongo/db/geo/r2_region_coverer.cpp:37: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::GeoHash&}; _Tp = mongo::GeoHash; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/geo/r2_region_coverer.h:35, from src/mongo/db/geo/r2_region_coverer.cpp:37: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In function 'void mongo::{anonymous}::getDifferenceInternal(mongo::GeoHash, const mongo::R2CellUnion&, std::vector*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/geo/r2_region_coverer.h:35, from src/mongo/db/geo/r2_region_coverer.cpp:37: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::GeoHash; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/geo/r2_region_coverer.h:35, from src/mongo/db/geo/r2_region_coverer.cpp:37: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::R2RegionCoverer::addCandidate(mongo::R2RegionCoverer::Candidate*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/db/geo/r2_region_coverer.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Val_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/db/geo/r2_region_coverer.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = mongo::GeoHash; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/db/geo/r2_region_coverer.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'bool mongo::R2CellUnion::normalize()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/queue:61, from src/mongo/db/geo/r2_region_coverer.h:35, from src/mongo/db/geo/r2_region_coverer.cpp:37: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/commands/libstandalone.a build/opt/mongo/db/commands/count_cmd.o build/opt/mongo/db/commands/create_indexes.o build/opt/mongo/db/commands/current_op.o build/opt/mongo/db/commands/dbcommands.o build/opt/mongo/db/commands/distinct.o build/opt/mongo/db/commands/drop_indexes.o build/opt/mongo/db/commands/explain_cmd.o build/opt/mongo/db/commands/find_and_modify.o build/opt/mongo/db/commands/find_cmd.o build/opt/mongo/db/commands/geo_near_cmd.o build/opt/mongo/db/commands/get_last_error.o build/opt/mongo/db/commands/getmore_cmd.o build/opt/mongo/db/commands/index_filter_commands.o build/opt/mongo/db/commands/kill_op.o build/opt/mongo/db/commands/killcursors_cmd.o build/opt/mongo/db/commands/lock_info.o build/opt/mongo/db/commands/list_collections.o build/opt/mongo/db/commands/list_databases.o build/opt/mongo/db/commands/list_indexes.o build/opt/mongo/db/commands/pipeline_command.o build/opt/mongo/db/commands/plan_cache_commands.o build/opt/mongo/db/commands/rename_collection_cmd.o build/opt/mongo/db/commands/repair_cursor.o build/opt/mongo/db/commands/run_aggregate.o build/opt/mongo/db/commands/sleep_command.o build/opt/mongo/db/commands/validate.o build/opt/mongo/db/commands/write_commands/write_commands.o /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::R2CellUnion::add(const std::vector&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 Skipping ranlib for thin archive build/opt/mongo/db/commands/libstandalone.a ar rcsTD build/opt/mongo/transport/libtransport_layer.a build/opt/mongo/transport/transport_layer_asio.o Skipping ranlib for thin archive build/opt/mongo/transport/libtransport_layer.a /home/buildroot/autobuild/instance-1/output-1/host/bin/python src/mongo/db/fts/unicode/gen_delimiter_list.py src/third_party/unicode-8.0.0/PropList.txt build/opt/mongo/db/fts/unicode/codepoints_delimiter_list.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/unicode/codepoints_delimiter_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/fts/unicode/codepoints_delimiter_list.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/unicode/codepoints_diacritic_map.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/unicode/codepoints_diacritic_map.cpp ar rcsTD build/opt/mongo/db/exec/libworking_set.a build/opt/mongo/db/exec/working_set.o Skipping ranlib for thin archive build/opt/mongo/db/exec/libworking_set.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/write_error_detail.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/write_ops/write_error_detail.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/curop.h:37, from src/mongo/s/client/shard_local.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/fts/unicode/libunicode.a build/opt/mongo/db/fts/unicode/codepoints_casefold.o build/opt/mongo/db/fts/unicode/codepoints_delimiter_list.o build/opt/mongo/db/fts/unicode/codepoints_diacritic_list.o build/opt/mongo/db/fts/unicode/codepoints_diacritic_map.o build/opt/mongo/db/fts/unicode/string.o Skipping ranlib for thin archive build/opt/mongo/db/fts/unicode/libunicode.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/native_sasl_client_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/native_sasl_client_session.cpp ar rcsTD build/opt/mongo/db/liblogical_time_validator.a build/opt/mongo/db/logical_time_validator.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_time_validator.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/shell/linenoise_utf8.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/shell/linenoise_utf8.cpp ar rcsTD build/opt/mongo/s/client/libshard_local.a build/opt/mongo/s/client/shard_local.o Skipping ranlib for thin archive build/opt/mongo/s/client/libshard_local.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/kill_sessions.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/kill_sessions.cpp ar rcsTD build/opt/mongo/liblinenoise_utf8.a build/opt/mongo/shell/linenoise_utf8.o Skipping ranlib for thin archive build/opt/mongo/liblinenoise_utf8.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/version_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/client/version_manager.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_unicode_tokenizer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_unicode_tokenizer.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/write_concern_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/write_concern_options.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/index/btree_key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/index/btree_key_generator.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from src/mongo/bson/bson_comparator_interface_base.h:35, from src/mongo/bson/bsonelement.h:45, from src/mongo/db/jsobj.h:49, from src/mongo/client/index_spec.h:37, from src/mongo/client/dbclientinterface.h:37, from src/mongo/client/dbclient_rs.h:37, from src/mongo/s/client/version_manager.cpp:37: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple, std::allocator >&>, std::tuple<>}; _Key = std::__cxx11::basic_string; _Val = std::pair, long long unsigned int>; _KeyOfValue = std::_Select1st, long long unsigned int> >; _Compare = std::less >; _Alloc = std::allocator, long long unsigned int> >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2452:7: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' {aka 'std::_Rb_tree_const_iterator, long long unsigned int> >'} changed in GCC 7.1 2452 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from src/mongo/bson/bson_comparator_interface_base.h:35, from src/mongo/bson/bsonelement.h:45, from src/mongo/db/jsobj.h:49, from src/mongo/client/index_spec.h:37, from src/mongo/client/dbclientinterface.h:37, from src/mongo/client/dbclient_rs.h:37, from src/mongo/s/client/version_manager.cpp:37: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In function 'bool mongo::{anonymous}::initShardVersionEmptyNS(mongo::OperationContext*, mongo::DBClientBase*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' {aka 'std::_Rb_tree_const_iterator, long long unsigned int> >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In function 'bool mongo::{anonymous}::checkShardVersion(mongo::OperationContext*, mongo::DBClientBase*, const string&, std::shared_ptr, bool, int)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, long long unsigned int>, std::_Select1st, long long unsigned int> >, std::less >, std::allocator, long long unsigned int> > >::const_iterator' {aka 'std::_Rb_tree_const_iterator, long long unsigned int> >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/role_graph_update.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/role_graph_update.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/keys_collection_client_sharded.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/keys_collection_client_sharded.cpp ar rcsTD build/opt/mongo/db/libwrite_concern_options.a build/opt/mongo/db/write_concern_options.o Skipping ranlib for thin archive build/opt/mongo/db/libwrite_concern_options.a ar rcsTD build/opt/mongo/s/libsharding_api.a build/opt/mongo/s/write_ops/cluster_write.o Skipping ranlib for thin archive build/opt/mongo/s/libsharding_api.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_applier.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_applier.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/auth/role_graph_update.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/auth/role_graph_update.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/auth/role_graph_update.cpp:43: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/auth/role_graph_update.cpp:43: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog/sharding_catalog_client_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog/sharding_catalog_client_impl.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/oplog_applier.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/oplog_applier.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/oplog_applier.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/libwrite_unit_of_work.a build/opt/mongo/db/storage/write_unit_of_work.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/storage/libwrite_unit_of_work.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/sock.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/sock.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/oplog_applier.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/update/update_driver.h:41, from src/mongo/db/auth/role_graph_update.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/repl/oplog_applier.cpp: In member function 'mongo::StatusWith > mongo::repl::OplogApplier::getNextApplierBatch(mongo::OperationContext*, const mongo::repl::OplogApplier::BatchLimits&)': src/mongo/db/repl/oplog_applier.cpp:122:29: warning: redundant move in return statement [-Wredundant-move] 122 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_applier.cpp:122:29: note: remove 'std::move' call src/mongo/db/repl/oplog_applier.cpp:127:29: warning: redundant move in return statement [-Wredundant-move] 127 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_applier.cpp:127:29: note: remove 'std::move' call src/mongo/db/repl/oplog_applier.cpp:132:29: warning: redundant move in return statement [-Wredundant-move] 132 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_applier.cpp:132:29: note: remove 'std::move' call src/mongo/db/repl/oplog_applier.cpp:142:21: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(ops); | ~~~~~~~~~^~~~~ src/mongo/db/repl/oplog_applier.cpp:142:21: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/auth/librole_graph_update.a build/opt/mongo/db/auth/role_graph_update.o Skipping ranlib for thin archive build/opt/mongo/db/auth/librole_graph_update.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/private/socket_poll.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/private/socket_poll.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/oplog_applier.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/views/libviews_mongod.a build/opt/mongo/db/views/durable_view_catalog.o Skipping ranlib for thin archive build/opt/mongo/db/views/libviews_mongod.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/ftdc_mongod.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_mongod.cpp ar rcsTD build/opt/mongo/util/net/libsocket.a build/opt/mongo/util/net/private/socket_poll.o build/opt/mongo/util/net/sock.o Skipping ranlib for thin archive build/opt/mongo/util/net/libsocket.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/transport_layer_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/transport/transport_layer_manager.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/oplog_applier.h:35, from src/mongo/db/repl/oplog_applier.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::repl::OplogEntry}; _Tp = mongo::repl::OplogEntry; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::repl::OplogEntry}; _Tp = mongo::repl::OplogEntry; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:45: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/liboplog_application.a build/opt/mongo/db/repl/applier_helpers.o build/opt/mongo/db/repl/oplog_applier.o build/opt/mongo/db/repl/session_update_tracker.o build/opt/mongo/db/repl/sync_tail.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_application.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/fail_point.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/fail_point.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongod.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongod.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongod.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongod.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/executor/network_interface.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/executor/network_interface.cpp ar rcsTD build/opt/mongo/db/query/datetime/libdate_time_support.a build/opt/mongo/db/query/datetime/date_time_support.o Skipping ranlib for thin archive build/opt/mongo/db/query/datetime/libdate_time_support.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_internal_expr_eq.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_internal_expr_eq.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/client/connection_string.h:36, from src/mongo/s/catalog/sharding_catalog_client_impl.h:33, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::KeysCollectionDocument}; _Tp = mongo::KeysCollectionDocument; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'virtual mongo::StatusWith > mongo::ShardingCatalogClientImpl::getNewKeys(mongo::OperationContext*, mongo::StringData, const mongo::LogicalTime&, mongo::repl::ReadConcernLevel)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::CollectionType&}; _Tp = mongo::CollectionType; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::ShardType&}; _Tp = mongo::ShardType; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 ar rcsTD build/opt/mongo/client/libclientdriver_minimal.a build/opt/mongo/client/dbclient.o build/opt/mongo/client/dbclientcursor.o build/opt/mongo/client/index_spec.o Skipping ranlib for thin archive build/opt/mongo/client/libclientdriver_minimal.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/json_schema_parser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/json_schema_parser.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_server.h:36, from src/mongo/db/ftdc/ftdc_mongod.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_internal_expr_eq.h:33, from src/mongo/db/matcher/expression_internal_expr_eq.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_internal_expr_eq.h:33, from src/mongo/db/matcher/expression_internal_expr_eq.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/client/connection_string.h:36, from src/mongo/s/catalog/sharding_catalog_client_impl.h:33, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::StatusWith > mongo::ShardingCatalogClientImpl::getCollections(mongo::OperationContext*, const string*, mongo::repl::OpTime*, mongo::repl::ReadConcernLevel)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_internal_expr_eq.h:33, from src/mongo/db/matcher/expression_internal_expr_eq.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_internal_expr_eq.cpp: In member function 'virtual std::unique_ptr mongo::InternalExprEqMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_internal_expr_eq.cpp:67:21: warning: redundant move in return statement [-Wredundant-move] 67 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/expression_internal_expr_eq.cpp:67:21: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::StatusWith > > mongo::ShardingCatalogClientImpl::getAllShards(mongo::OperationContext*, mongo::repl::ReadConcernLevel)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/client/connection_string.h:36, from src/mongo/s/catalog/sharding_catalog_client_impl.h:33, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::ChunkType&}; _Tp = mongo::ChunkType; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/client/connection_string.h:36, from src/mongo/s/catalog/sharding_catalog_client_impl.h:33, from src/mongo/s/catalog/sharding_catalog_client_impl.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'virtual mongo::StatusWith > mongo::ShardingCatalogClientImpl::getChunks(mongo::OperationContext*, const mongo::BSONObj&, const mongo::BSONObj&, boost::optional, mongo::repl::OpTime*, mongo::repl::ReadConcernLevel)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/logger/parse_log_component_settings.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/logger/parse_log_component_settings.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/json_schema_parser.h:33, from src/mongo/db/matcher/schema/json_schema_parser.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/json_schema_parser.h:33, from src/mongo/db/matcher/schema/json_schema_parser.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/json_schema_parser.h:34, from src/mongo/db/matcher/schema/json_schema_parser.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_type.h:33, from src/mongo/db/matcher/schema/json_schema_parser.h:35, from src/mongo/db/matcher/schema/json_schema_parser.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/libdebugger.a build/opt/mongo/util/debugger.o Skipping ranlib for thin archive build/opt/mongo/util/libdebugger.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/rs_rollback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/rs_rollback.cpp ar rcsTD build/opt/mongo/s/catalog/libsharding_catalog_client_impl.a build/opt/mongo/s/catalog/sharding_catalog_client_impl.o Skipping ranlib for thin archive build/opt/mongo/s/catalog/libsharding_catalog_client_impl.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/member_data.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/member_data.cpp In file included from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:34, from src/mongo/db/matcher/schema/json_schema_parser.cpp:44: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:48: src/mongo/db/matcher/schema/expression_internal_schema_fmod.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaFmodMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:51:25: warning: redundant move in return statement [-Wredundant-move] 51 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/schema/expression_internal_schema_fmod.h:51:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:50: src/mongo/db/matcher/schema/expression_internal_schema_max_items.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxItemsMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_items.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(maxItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_items.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:51: src/mongo/db/matcher/schema/expression_internal_schema_max_length.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxLengthMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_length.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(maxLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_length.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:52: src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMaxPropertiesMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h:68:25: warning: redundant move in return statement [-Wredundant-move] 68 | return std::move(maxProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_max_properties.h:68:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:53: src/mongo/db/matcher/schema/expression_internal_schema_min_items.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinItemsMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_items.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(minItems); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_items.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:54: src/mongo/db/matcher/schema/expression_internal_schema_min_length.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinLengthMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_length.h:58:25: warning: redundant move in return statement [-Wredundant-move] 58 | return std::move(minLen); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_length.h:58:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:55: src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaMinPropertiesMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h:68:25: warning: redundant move in return statement [-Wredundant-move] 68 | return std::move(minProperties); | ~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_min_properties.h:68:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:59: src/mongo/db/matcher/schema/expression_internal_schema_xor.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaXorMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_xor.h:59:25: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:59:25: note: remove 'std::move' call src/mongo/db/matcher/schema/json_schema_parser.cpp: In function 'std::unique_ptr mongo::{anonymous}::makeRestriction(const mongo::MatcherTypeSet&, mongo::StringData, std::unique_ptr, mongo::InternalSchemaTypeExpression*)': src/mongo/db/matcher/schema/json_schema_parser.cpp:173:21: warning: redundant move in return statement [-Wredundant-move] 173 | return std::move(orExpr); | ~~~~~~~~~^~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:173:21: note: remove 'std::move' call ar rcsTD build/opt/mongo/logger/libparse_log_component_settings.a build/opt/mongo/logger/parse_log_component_settings.o Skipping ranlib for thin archive build/opt/mongo/logger/libparse_log_component_settings.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/topology_coordinator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/topology_coordinator.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/repl/rs_rollback.cpp:49: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/repl/rs_rollback.cpp:49: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/repl/rs_rollback.cpp:49: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:34, from src/mongo/db/matcher/schema/json_schema_parser.cpp:46: src/mongo/db/matcher/expression_arity.h: In instantiation of 'std::unique_ptr mongo::FixedArityMatchExpression::shallowClone() const [with T = mongo::InternalSchemaCondMatchExpression; unsigned int nargs = 3]': src/mongo/db/matcher/expression_arity.h:118:38: required from here src/mongo/db/matcher/expression_arity.h:133:31: warning: redundant move in return statement [-Wredundant-move] 133 | return std::move(clone); | ^ src/mongo/db/matcher/expression_arity.h:133:31: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/repl/rs_rollback.cpp:49: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/json_schema_parser.h:35, from src/mongo/db/matcher/schema/json_schema_parser.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/file_reader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/file_reader.cpp In file included from src/mongo/db/matcher/schema/json_schema_parser.cpp:40: src/mongo/bson/unordered_fields_bsonelement_comparator.h: In member function 'virtual void mongo::UnorderedFieldsBSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/unordered_fields_bsonelement_comparator.h:53:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 53 | hashCombineBSONElement(seed, toHash, ComparisonRules::kIgnoreFieldOrder, kStringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/sasl_scram_client_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/sasl_scram_client_conversation.cpp src/mongo/db/matcher/schema/json_schema_parser.cpp: In function 'mongo::StatusWith > > mongo::{anonymous}::parseType(mongo::StringData, mongo::StringData, mongo::BSONElement, mongo::StringMap&)': src/mongo/db/matcher/schema/json_schema_parser.cpp:176:59: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 176 | StatusWith> parseType( | ^~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/repl_set_config.h:34, from src/mongo/db/repl/repl_set_heartbeat_response.h:37, from src/mongo/db/repl/topology_coordinator.h:38, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::repl::OpTime&}; _Tp = mongo::repl::OpTime; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp: In function 'mongo::StatusWith > mongo::{anonymous}::parseRequired(mongo::BSONElement)': src/mongo/db/matcher/schema/json_schema_parser.cpp:451:52: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 451 | StatusWith> parseRequired(BSONElement requiredElt) { | ^~~~~~~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:451:52: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog/uuid_catalog.h:36, from src/mongo/db/repl/rs_rollback.cpp:49: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/schema/json_schema_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::parseAllowedProperties(mongo::StringData, mongo::BSONElement, mongo::BSONElement, mongo::BSONElement, mongo::InternalSchemaTypeExpression*, bool)': src/mongo/db/matcher/schema/json_schema_parser.cpp:652:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 652 | StatusWithMatchExpression parseAllowedProperties(StringData path, | ^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:652:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/schema/json_schema_parser.cpp:652:27: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/schema/json_schema_parser.cpp: In function 'mongo::Status mongo::{anonymous}::translateObjectKeywords(mongo::StringMap*, mongo::StringData, mongo::InternalSchemaTypeExpression*, mongo::AndMatchExpression*, bool)': src/mongo/db/matcher/schema/json_schema_parser.cpp:1152:56: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1152 | auto requiredStatus = parseRequired(requiredElt); | ^ src/mongo/db/matcher/schema/json_schema_parser.cpp:1179:86: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1179 | ignoreUnknownKeywords); | ^ src/mongo/db/matcher/schema/json_schema_parser.cpp:1179:86: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/schema/json_schema_parser.cpp:1179:86: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/schema/json_schema_parser.cpp:1179:86: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/schema/json_schema_parser.cpp:706:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 706 | auto parsedNumProps = | ^~~~~~~~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:706:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 706 | auto parsedNumProps = | ^~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:60, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_month.hpp:18, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_ymd.hpp:16, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_calendar.hpp:17, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/gregorian_types.hpp:19, from src/mongo/util/time_support.h:35, from src/mongo/bson/timestamp.h:36, from src/mongo/db/repl/optime.h:35, from src/mongo/db/repl/repl_set_heartbeat_response.h:36, from src/mongo/db/repl/topology_coordinator.h:38, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple, std::tuple<>}; _Key = mongo::HostAndPort; _Val = std::pair; _KeyOfValue = std::_Select1st >; _Compare = std::less; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2452:7: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 2452 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/map:61, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_month.hpp:18, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_ymd.hpp:16, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/greg_calendar.hpp:17, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/date_time/gregorian/gregorian_types.hpp:19, from src/mongo/util/time_support.h:35, from src/mongo/bson/timestamp.h:36, from src/mongo/db/repl/optime.h:35, from src/mongo/db/repl/repl_set_heartbeat_response.h:36, from src/mongo/db/repl/topology_coordinator.h:38, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'mongo::Milliseconds mongo::repl::TopologyCoordinator::_getPing(const mongo::HostAndPort&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, src/mongo/db/matcher/schema/json_schema_parser.cpp: In function 'mongo::StatusWithMatchExpression mongo::{anonymous}::_parse(mongo::StringData, mongo::BSONObj, bool)': src/mongo/db/matcher/schema/json_schema_parser.cpp:1433:98: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1433 | parseType(path, kSchemaTypeKeyword, typeElem, MatcherTypeSet::kJsonSchemaTypeAliasMap); | ^ src/mongo/db/matcher/schema/json_schema_parser.cpp:1440:80: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 1440 | parseType(path, kSchemaBsonTypeKeyword, bsonTypeElem, kTypeAliasMap); | ^ src/mongo/db/matcher/schema/json_schema_parser.cpp:299:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 299 | auto parsedLength = MatchExpressionParser::parseIntegerElementToNonNegativeLong(length); | ^~~~~~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:299:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 299 | auto parsedLength = MatchExpressionParser::parseIntegerElementToNonNegativeLong(length); | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'std::pair > > mongo::repl::TopologyCoordinator::prepareHeartbeatRequestV1(mongo::Date_t, const string&, const mongo::HostAndPort&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'std::pair > > mongo::repl::TopologyCoordinator::prepareHeartbeatRequest(mongo::Date_t, const string&, const mongo::HostAndPort&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/write_ops/batch_write_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/write_ops/batch_write_op.cpp src/mongo/db/matcher/schema/json_schema_parser.cpp: In function 'mongo::Status mongo::{anonymous}::translateArrayKeywords(mongo::StringMap*, mongo::StringData, bool, mongo::InternalSchemaTypeExpression*, mongo::AndMatchExpression*)': src/mongo/db/matcher/schema/json_schema_parser.cpp:299:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 299 | auto parsedLength = MatchExpressionParser::parseIntegerElementToNonNegativeLong(length); | ^~~~~~~~~~~~ src/mongo/db/matcher/schema/json_schema_parser.cpp:299:10: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 299 | auto parsedLength = MatchExpressionParser::parseIntegerElementToNonNegativeLong(length); | ^~~~~~~~~~~~ In file included from src/mongo/db/repl/rs_rollback.cpp:40: src/mongo/bson/bsonelement_comparator.h: In member function 'virtual void mongo::BSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/bsonelement_comparator.h:69:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 69 | hashCombineBSONElement(seed, toHash, _rules, _stringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h: In member function 'mongo::repl::HeartbeatResponseAction mongo::repl::TopologyCoordinator::processHeartbeatResponse(mongo::Date_t, mongo::Milliseconds, const mongo::HostAndPort&, const mongo::StatusWith&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_map.h:499:8: note: parameter passing for argument of type 'std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::const_iterator' {aka 'std::_Rb_tree_const_iterator >'} changed in GCC 7.1 499 | __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct, In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/repl/repl_set_config.h:34, from src/mongo/db/repl/repl_set_heartbeat_response.h:37, from src/mongo/db/repl/topology_coordinator.h:38, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {}; _Tp = mongo::repl::MemberData; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In constructor 'mongo::repl::TopologyCoordinator::TopologyCoordinator(mongo::repl::TopologyCoordinator::Options)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/memory:80, from src/mongo/base/error_extra_info.h:33, from src/mongo/base/status.h:37, from src/mongo/db/matcher/expression.h:37, from src/mongo/db/matcher/schema/json_schema_parser.h:33, from src/mongo/db/matcher/schema/json_schema_parser.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h: In function 'mongo::Status mongo::{anonymous}::translateLogicalKeywords(mongo::StringMap*, mongo::StringData, mongo::AndMatchExpression*, bool)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h:849:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 849 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h:849:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::repl::MemberData&}; _Tp = mongo::repl::MemberData; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/base/status_with.h:33, from src/mongo/db/repl/last_vote.h:33, from src/mongo/db/repl/topology_coordinator.h:37, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__unguarded_linear_insert(_RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Val_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1820:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1820 | __unguarded_linear_insert(_RandomAccessIterator __last, | ^~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/base/status_with.h:33, from src/mongo/db/repl/last_vote.h:33, from src/mongo/db/repl/topology_coordinator.h:37, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = mongo::repl::OpTime; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/base/status_with.h:33, from src/mongo/db/repl/last_vote.h:33, from src/mongo/db/repl/topology_coordinator.h:37, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/repl/repl_set_config.h:34, from src/mongo/db/repl/repl_set_heartbeat_response.h:37, from src/mongo/db/repl/topology_coordinator.h:38, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'bool mongo::repl::TopologyCoordinator::updateLastCommittedOpTime()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/core/swap.hpp:27, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional/optional.hpp:31, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/optional.hpp:15, from src/mongo/base/status_with.h:33, from src/mongo/db/repl/last_vote.h:33, from src/mongo/db/repl/topology_coordinator.h:37, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/repl/rs_rollback.cpp: In member function 'mongo::Status mongo::repl::rollback_internal::FixUpInfo::recordDropTargetInfo(const mongo::BSONElement&, const mongo::BSONObj&, mongo::repl::OpTime)': src/mongo/db/repl/rs_rollback.cpp:195:67: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 195 | StatusWith dropTargetUUIDStatus = UUID::parse(dropTarget); | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/processinfo_linux.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/processinfo_linux.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/repl/repl_set_config.h:34, from src/mongo/db/repl/repl_set_heartbeat_response.h:37, from src/mongo/db/repl/topology_coordinator.h:38, from src/mongo/db/repl/topology_coordinator.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::repl::TopologyCoordinator::_updateHeartbeatDataForReconfig(const mongo::repl::ReplSetConfig&, int, mongo::Date_t)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/repl/libtopology_coordinator.a build/opt/mongo/db/repl/heartbeat_response_action.o build/opt/mongo/db/repl/member_data.o build/opt/mongo/db/repl/topology_coordinator.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libtopology_coordinator.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/write_commands/write_commands_common.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/write_commands/write_commands_common.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/s/write_ops/batch_write_op.h:35, from src/mongo/s/write_ops/batch_write_op.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::ShardError}; _Tp = mongo::ShardError; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::TrackedErrors::addError(mongo::ShardError)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const mongo::ShardEndpoint&, const mongo::WriteConcernErrorDetail&}; _Tp = mongo::ShardWCError; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::BatchWriteOp::noteBatchResponse(const mongo::TargetedWriteBatch&, const mongo::BatchedCommandResponse&, mongo::TrackedErrors*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/util/libprocessinfo.a build/opt/mongo/util/processinfo.o build/opt/mongo/util/processinfo_linux.o Skipping ranlib for thin archive build/opt/mongo/util/libprocessinfo.a ar rcsTD build/opt/third_party/libshim_pcrecpp.a build/opt/third_party/shim_pcrecpp.o Skipping ranlib for thin archive build/opt/third_party/libshim_pcrecpp.a ar rcsTD build/opt/mongo/db/repl/libstorage_interface.a build/opt/mongo/db/repl/storage_interface.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libstorage_interface.a ar rcsTD build/opt/third_party/s2/util/math/libmath.a build/opt/third_party/s2/util/math/mathutil.o Skipping ranlib for thin archive build/opt/third_party/s2/util/math/libmath.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_entry_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/repl/oplog_entry_gen.cpp ar rcsTD build/opt/mongo/db/repl/librs_rollback.a build/opt/mongo/db/repl/rs_rollback.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librs_rollback.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/oplog_interface_local.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/oplog_interface_local.cpp ar rcsTD build/opt/mongo/s/write_ops/libcluster_write_op.a build/opt/mongo/s/write_ops/batch_write_exec.o build/opt/mongo/s/write_ops/batch_write_op.o build/opt/mongo/s/write_ops/chunk_manager_targeter.o build/opt/mongo/s/write_ops/write_op.o Skipping ranlib for thin archive build/opt/mongo/s/write_ops/libcluster_write_op.a ar rcsTD build/opt/mongo/db/storage/kv/libkv_prefix.a build/opt/mongo/db/storage/kv/kv_prefix.o Skipping ranlib for thin archive build/opt/mongo/db/storage/kv/libkv_prefix.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_xor.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_controller.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_controller.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_tree.h:35, from src/mongo/db/matcher/schema/expression_internal_schema_xor.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_tree.h:35, from src/mongo/db/matcher/schema/expression_internal_schema_xor.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_xor.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/oplog_entry_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/oplog_entry_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_xor.cpp:33: src/mongo/db/matcher/schema/expression_internal_schema_xor.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaXorMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_xor.h:59:25: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:59:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/oplog_entry_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/oplog_entry_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/oplog_interface_local.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/oplog_interface_local.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/oplog_interface_local.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/oplog_interface_local.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test.a build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_init.o Skipping ranlib for thin archive build/opt/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test.a ar rcsTD build/opt/mongo/s/query/libcluster_cursor_cleanup_job.a build/opt/mongo/s/query/cluster_cursor_cleanup_job.o Skipping ranlib for thin archive build/opt/mongo/s/query/libcluster_cursor_cleanup_job.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharded_connection_info.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharded_connection_info.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/repl/oplog_entry_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/stop_words.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/stop_words.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_spec_legacy.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_spec_legacy.cpp ar rcsTD build/opt/mongo/db/repl/liboplog_entry.a build/opt/mongo/db/repl/oplog_entry.o build/opt/mongo/db/repl/oplog_entry_gen.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_entry.a /home/buildroot/autobuild/instance-1/output-1/host/bin/python src/mongo/db/fts/generate_stop_words.py src/mongo/db/fts/stop_words_danish.txt src/mongo/db/fts/stop_words_dutch.txt src/mongo/db/fts/stop_words_english.txt src/mongo/db/fts/stop_words_finnish.txt src/mongo/db/fts/stop_words_french.txt src/mongo/db/fts/stop_words_german.txt src/mongo/db/fts/stop_words_hungarian.txt src/mongo/db/fts/stop_words_italian.txt src/mongo/db/fts/stop_words_norwegian.txt src/mongo/db/fts/stop_words_portuguese.txt src/mongo/db/fts/stop_words_romanian.txt src/mongo/db/fts/stop_words_russian.txt src/mongo/db/fts/stop_words_spanish.txt src/mongo/db/fts/stop_words_swedish.txt src/mongo/db/fts/stop_words_turkish.txt build/opt/mongo/db/fts/stop_words_list.h build/opt/mongo/db/fts/stop_words_list.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/stop_words_list.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/fts/stop_words_list.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/repl/oplog_interface_local.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_unicode_phrase_matcher.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_unicode_phrase_matcher.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/fts_spec.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/fts_spec.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/stemmer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/stemmer.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/fts/tokenizer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/libstemmer_c/include -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/fts/tokenizer.cpp ar rcsTD build/opt/third_party/libshim_boost.a build/opt/third_party/shim_boost.o Skipping ranlib for thin archive build/opt/third_party/libshim_boost.a ar rcsTD build/opt/mongo/executor/libegress_tag_closer_manager.a build/opt/mongo/executor/egress_tag_closer_manager.o Skipping ranlib for thin archive build/opt/mongo/executor/libegress_tag_closer_manager.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/security_file.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/security_file.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/fts/fts_spec.cpp:41: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/fts/fts_spec.cpp:41: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/fts/fts_spec.cpp:41: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/fts/fts_spec.cpp:41: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/libintrusive_counter.a build/opt/mongo/util/intrusive_counter.o Skipping ranlib for thin archive build/opt/mongo/util/libintrusive_counter.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/repl_settings_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/repl_settings_init.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/lock_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/concurrency/lock_stats.cpp ar rcsTD build/opt/mongo/util/libclock_sources.a build/opt/mongo/util/background_thread_clock_source.o build/opt/mongo/util/clock_source.o build/opt/mongo/util/fast_clock_source_factory.o Skipping ranlib for thin archive build/opt/mongo/util/libclock_sources.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/conn_pool_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/conn_pool_stats.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/sasl_client_conversation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/sasl_client_conversation.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/client/sasl_client_session.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/client/sasl_client_session.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_stats.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_stats.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/fts/fts_spec.cpp:41: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_stats.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_stats.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_match_array_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp ar rcsTD build/opt/mongo/client/libsasl_client.a build/opt/mongo/client/native_sasl_client_session.o build/opt/mongo/client/sasl_client_authenticate.o build/opt/mongo/client/sasl_client_authenticate_impl.o build/opt/mongo/client/sasl_client_conversation.o build/opt/mongo/client/sasl_client_session.o build/opt/mongo/client/sasl_plain_client_conversation.o build/opt/mongo/client/sasl_scram_client_conversation.o Skipping ranlib for thin archive build/opt/mongo/client/libsasl_client.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/sync_source_feedback.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/sync_source_feedback.cpp src/mongo/db/fts/fts_spec.cpp: In member function 'mongo::Status mongo::fts::FTSSpec::getIndexPrefix(const mongo::BSONObj&, mongo::BSONObj*) const': src/mongo/db/fts/fts_spec.cpp:256:84: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 256 | MatchExpressionParser::parsePathAcceptingKeyword(e.Obj().firstElement())) | ^ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:33: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/fts/libbase_fts.a build/opt/mongo/db/fts/fts_index_format.o build/opt/mongo/db/fts/fts_matcher.o build/opt/mongo/db/fts/fts_query_impl.o build/opt/mongo/db/fts/fts_query_parser.o build/opt/mongo/db/fts/fts_spec.o build/opt/mongo/db/fts/fts_spec_legacy.o build/opt/mongo/db/fts/fts_language.o build/opt/mongo/db/fts/fts_basic_phrase_matcher.o build/opt/mongo/db/fts/fts_basic_tokenizer.o build/opt/mongo/db/fts/fts_unicode_phrase_matcher.o build/opt/mongo/db/fts/fts_unicode_tokenizer.o build/opt/mongo/db/fts/fts_util.o build/opt/mongo/db/fts/fts_element_iterator.o build/opt/mongo/db/fts/stemmer.o build/opt/mongo/db/fts/stop_words.o build/opt/mongo/db/fts/stop_words_list.o build/opt/mongo/db/fts/tokenizer.o Skipping ranlib for thin archive build/opt/mongo/db/fts/libbase_fts.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/collection_metadata.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/collection_metadata.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/sync_source_feedback.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/sync_source_feedback.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp: In member function 'virtual std::unique_ptr mongo::InternalSchemaMatchArrayIndexMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:95:21: warning: redundant move in return statement [-Wredundant-move] 95 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:95:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/sync_source_feedback.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/sync_source_feedback.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/conn_pool_stats.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_match_array_index.cpp:33: src/mongo/db/matcher/expression_with_placeholder.h: In member function 'virtual bool mongo::InternalSchemaMatchArrayIndexMatchExpression::matchesArray(const mongo::BSONObj&, mongo::MatchDetails*) const': src/mongo/db/matcher/expression_with_placeholder.h:78:43: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 78 | return _filter->matchesBSONElement(elem, details); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/devnull/devnull_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/devnull/devnull_init.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/kill_op_cmd_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/kill_op_cmd_base.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/sync_source_feedback.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repair_database.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repair_database.cpp ar rcsTD build/opt/mongo/db/storage/devnull/libstorage_devnull.a build/opt/mongo/db/storage/devnull/devnull_init.o Skipping ranlib for thin archive build/opt/mongo/db/storage/devnull/libstorage_devnull.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/scatter_gather_algorithm.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/scatter_gather_algorithm.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op_cmd_base.h:31, from src/mongo/db/commands/kill_op_cmd_base.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op_cmd_base.h:31, from src/mongo/db/commands/kill_op_cmd_base.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op_cmd_base.h:31, from src/mongo/db/commands/kill_op_cmd_base.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op_cmd_base.h:31, from src/mongo/db/commands/kill_op_cmd_base.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/compress.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/compress.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/initialize_snmp.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/initialize_snmp.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repair_database.cpp:44: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repair_database.cpp:44: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repair_database.cpp:44: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/libscatter_gather.a build/opt/mongo/db/repl/scatter_gather_algorithm.o build/opt/mongo/db/repl/scatter_gather_runner.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move 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/opt/mongo/db/repl/libscatter_gather.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/transport/service_executor_synchronous.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/transport/service_executor_synchronous.cpp In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repair_database.cpp:44: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/repl/liboplog_interface_local.a build/opt/mongo/db/repl/oplog_interface_local.o src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplog_interface_local.a src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2regionunion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2regionunion.cc src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/logical_session_id.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/logical_session_id.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/kill_op_cmd_base.h:31, from src/mongo/db/commands/kill_op_cmd_base.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/transport/libservice_executor.a build/opt/mongo/transport/service_executor_adaptive.o build/opt/mongo/transport/service_executor_reserved.o build/opt/mongo/transport/service_executor_synchronous.o build/opt/mongo/transport/thread_idle_callback.o Skipping ranlib for thin archive build/opt/mongo/transport/libservice_executor.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_text_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_text_base.cpp ar rcsTD build/opt/mongo/db/storage/mmap_v1/libcompress.a build/opt/mongo/db/storage/mmap_v1/compress.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libcompress.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_tree.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_tree.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text_base.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text_base.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.h:38, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.h:38, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_text_base.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repair_database.cpp:44: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_tree.h:35, from src/mongo/db/matcher/expression_tree.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_tree.h:35, from src/mongo/db/matcher/expression_tree.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_tree.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/expression_tree.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.cpp: In lambda function: src/mongo/db/matcher/expression_tree.cpp:157:33: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(simplifiedExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.cpp:157:33: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp In file included from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.h:39, from src/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.cpp:33: src/mongo/db/matcher/expression_with_placeholder.h: In member function 'bool mongo::InternalSchemaAllowedPropertiesMatchExpression::_matchesBSONObj(const mongo::BSONObj&) const': src/mongo/db/matcher/expression_with_placeholder.h:78:43: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 78 | return _filter->matchesBSONElement(elem, details); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_with_placeholder.h:78:43: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 78 | return _filter->matchesBSONElement(elem, details); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_str_length.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_str_length.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:32: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:32: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:32: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/dbdirectclient.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/dbdirectclient.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp: In member function 'virtual std::unique_ptr mongo::InternalSchemaAllElemMatchFromIndexMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:56:21: warning: redundant move in return statement [-Wredundant-move] 56 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:56:21: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/dur_journal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/dur_journal.cpp In file included from src/mongo/db/matcher/schema/expression_internal_schema_str_length.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_str_length.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.h:35, from src/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.cpp:32: src/mongo/db/matcher/expression_with_placeholder.h: In member function 'virtual bool mongo::InternalSchemaAllElemMatchFromIndexMatchExpression::matchesArray(const mongo::BSONObj&, mongo::MatchDetails*) const': src/mongo/db/matcher/expression_with_placeholder.h:78:43: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 78 | return _filter->matchesBSONElement(elem, details); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/dbdirectclient.cpp:40: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/dbdirectclient.cpp:40: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/dbdirectclient.cpp:40: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/dbdirectclient.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libglobal_settings.a build/opt/mongo/db/global_settings.o Skipping ranlib for thin archive build/opt/mongo/db/libglobal_settings.a ar rcsTD build/opt/mongo/db/commands/libkill_common.a build/opt/mongo/db/commands/killcursors_common.o build/opt/mongo/db/commands/kill_op_cmd_base.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libkill_common.a ar rcsTD build/opt/mongo/db/libcommand_generic_argument.a build/opt/mongo/db/command_generic_argument.o Skipping ranlib for thin archive build/opt/mongo/db/libcommand_generic_argument.a ar rcsTD build/opt/mongo/db/index/libkey_generator.a build/opt/mongo/db/index/btree_key_generator.o build/opt/mongo/db/index/expression_keys_private.o build/opt/mongo/db/index/sort_key_generator.o Skipping ranlib for thin archive build/opt/mongo/db/index/libkey_generator.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/lock_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/concurrency/lock_manager.cpp ar rcsTD build/opt/third_party/libshim_stemmer.a build/opt/third_party/shim_stemmer.o Skipping ranlib for thin archive build/opt/third_party/libshim_stemmer.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/auth/authz_manager_external_state_d.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/auth/authz_manager_external_state_d.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/dbdirectclient.cpp:40: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_commands_helpers.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/commands/cluster_commands_helpers.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/auth/authz_manager_external_state_d.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/auth/authz_manager_external_state_d.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/auth/authz_manager_external_state_d.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/auth/authz_manager_external_state_d.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/lock_manager.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/libdbdirectclient.a build/opt/mongo/db/dbdirectclient.o Skipping ranlib for thin archive build/opt/mongo/db/libdbdirectclient.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/hostandport.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/hostandport.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_commands_helpers.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_commands_helpers.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/concurrency/lock_manager.h:36, from src/mongo/db/concurrency/lock_manager.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::DeadlockDetector::_processNextNode(const mongo::DeadlockDetector::UnprocessedNode&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/db/concurrency/lock_manager.cpp:1116:1: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1116 | } | ^ src/mongo/db/concurrency/lock_manager.cpp:1116:1: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_commands_helpers.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_commands_helpers.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/concurrency/liblock_manager.a build/opt/mongo/db/concurrency/d_concurrency.o build/opt/mongo/db/concurrency/global_lock_acquisition_tracker.o build/opt/mongo/db/concurrency/lock_manager.o build/opt/mongo/db/concurrency/lock_state.o build/opt/mongo/db/concurrency/lock_stats.o Skipping ranlib for thin archive build/opt/mongo/db/concurrency/liblock_manager.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document.cpp ar rcsTD build/opt/mongo/db/stats/libcounters.a build/opt/mongo/db/stats/counters.o Skipping ranlib for thin archive build/opt/mongo/db/stats/libcounters.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/query/explain_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/query/explain_options.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/auth/authz_manager_external_state_d.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/catalog/libdatabase.a build/opt/mongo/db/catalog/database.o Skipping ranlib for thin archive build/opt/mongo/db/catalog/libdatabase.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2pointregion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2pointregion.cc In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_commands_helpers.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libcommands.a build/opt/mongo/db/commands.o Skipping ranlib for thin archive build/opt/mongo/db/libcommands.a ar rcsTD build/opt/mongo/executor/libremote_command.a build/opt/mongo/executor/remote_command_request.o build/opt/mongo/executor/remote_command_response.o Skipping ranlib for thin archive build/opt/mongo/executor/libremote_command.a ar rcsTD build/opt/mongo/db/s/libop_observer_sharding_impl.a build/opt/mongo/db/s/op_observer_sharding_impl.o Skipping ranlib for thin archive build/opt/mongo/db/s/libop_observer_sharding_impl.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_algo.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_algo.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_eq.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/s/commands/cluster_commands_helpers.h:34, from src/mongo/s/commands/cluster_commands_helpers.cpp:37: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::AsyncRequestsSender::Response}; _Tp = mongo::AsyncRequestsSender::Response; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In function 'std::vector mongo::gatherResponses(mongo::OperationContext*, mongo::StringData, const mongo::ReadPreferenceSetting&, mongo::Shard::RetryPolicy, const std::vector&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_algo.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_algo.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_leaf.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_algo.cpp:38: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_algo.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move 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/schema/expression_internal_schema_eq.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression.h:41, from src/mongo/db/matcher/expression.cpp:33: src/mongo/db/matcher/matchable.h: In member function 'virtual mongo::ElementIterator* mongo::BSONElementViewMatchableDocument::allocateIterator(const mongo::ElementPath*) const': src/mongo/db/matcher/matchable.h:134:68: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 134 | return new BSONElementIterator(path, suffixIndex, _elem); | ^ src/mongo/db/matcher/matchable.h:134:68: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/matchable.h:137:24: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 137 | _iterator.reset(path, suffixIndex, _elem); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/matchable.h:137:24: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 In file included from src/mongo/db/matcher/expression_algo.cpp:40: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move 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_algo.cpp:41: src/mongo/db/matcher/schema/expression_internal_schema_xor.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaXorMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_xor.h:59:25: warning: redundant move in return statement [-Wredundant-move] 59 | return std::move(xorCopy); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_xor.h:59:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_algo.cpp: In function 'std::unique_ptr mongo::{anonymous}::createAndOfNodes(std::vector >*)': src/mongo/db/matcher/expression_algo.cpp:261:21: warning: redundant move in return statement [-Wredundant-move] 261 | return std::move(splitAnd); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/expression_algo.cpp:261:21: note: remove 'std::move' call src/mongo/db/matcher/expression_algo.cpp: In function 'std::unique_ptr mongo::{anonymous}::createNorOfNodes(std::vector >*)': src/mongo/db/matcher/expression_algo.cpp:277:21: warning: redundant move in return statement [-Wredundant-move] 277 | return std::move(splitNor); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/expression_algo.cpp:277:21: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp: In member function 'virtual std::unique_ptr mongo::InternalSchemaEqMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:90:21: warning: redundant move in return statement [-Wredundant-move] 90 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:90:21: note: remove 'std::move' call src/mongo/db/matcher/expression.cpp: In member function 'virtual bool mongo::MatchExpression::matchesBSONElement(mongo::BSONElement, mongo::MatchDetails*) const': src/mongo/db/matcher/expression.cpp:60:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 60 | bool MatchExpression::matchesBSONElement(BSONElement elem, MatchDetails* details) const { | ^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_cond.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp In file included from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:33: src/mongo/bson/unordered_fields_bsonelement_comparator.h: In member function 'virtual void mongo::UnorderedFieldsBSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/unordered_fields_bsonelement_comparator.h:53:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 53 | hashCombineBSONElement(seed, toHash, ComparisonRules::kIgnoreFieldOrder, kStringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp: In constructor 'mongo::InternalSchemaEqMatchExpression::InternalSchemaEqMatchExpression(mongo::StringData, mongo::BSONElement)': src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:43:1: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 43 | InternalSchemaEqMatchExpression::InternalSchemaEqMatchExpression(StringData path, BSONElement rhs) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/memory:80, from src/mongo/base/error_extra_info.h:33, from src/mongo/base/status.h:37, from src/mongo/util/assert_util.h:37, from src/mongo/bson/bson_comparator_interface_base.h:43, from src/mongo/bson/bsonelement_comparator_interface.h:33, from src/mongo/bson/unordered_fields_bsonelement_comparator.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_eq.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_eq.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h: In member function 'virtual std::unique_ptr mongo::InternalSchemaEqMatchExpression::shallowClone() const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h:849:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 849 | { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/unique_ptr.h:849:30: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_arity.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_arity.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_object_match.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/rewrite_expr.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/rewrite_expr.cpp In file included from src/mongo/db/matcher/schema/expression_internal_schema_cond.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_cond.cpp:33: src/mongo/db/matcher/expression_arity.h: In instantiation of 'std::unique_ptr mongo::FixedArityMatchExpression::shallowClone() const [with T = mongo::InternalSchemaCondMatchExpression; unsigned int nargs = 3]': src/mongo/db/matcher/expression_arity.h:118:38: required from here src/mongo/db/matcher/expression_arity.h:133:31: warning: redundant move in return statement [-Wredundant-move] 133 | return std::move(clone); | ^ src/mongo/db/matcher/expression_arity.h:133:31: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_unique_items.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_object_match.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_where_noop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_where_noop.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_object_match.h:33, from src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/rewrite_expr.h:36, from src/mongo/db/matcher/rewrite_expr.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/rewrite_expr.h:36, from src/mongo/db/matcher/rewrite_expr.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp: In member function 'virtual std::unique_ptr mongo::InternalSchemaObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp:83:21: warning: redundant move in return statement [-Wredundant-move] 83 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_object_match.cpp:83:21: note: remove 'std::move' call In file included from src/mongo/db/matcher/rewrite_expr.h:37, from src/mongo/db/matcher/rewrite_expr.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/rewrite_expr.h:38, from src/mongo/db/matcher/rewrite_expr.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.h:36, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:33: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp: In member function 'virtual std::unique_ptr mongo::InternalSchemaUniqueItemsMatchExpression::shallowClone() const': src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:73:21: warning: redundant move in return statement [-Wredundant-move] 73 | return std::move(clone); | ~~~~~~~~~^~~~~~~ src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:73:21: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_where_base.h:33, from src/mongo/db/matcher/expression_where_noop.h:33, from src/mongo/db/matcher/expression_where_noop.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_where_base.h:33, from src/mongo/db/matcher/expression_where_noop.h:33, from src/mongo/db/matcher/expression_where_noop.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/expression_where_base.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/expression_where_base.cpp In file included from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.h:35, from src/mongo/db/matcher/schema/expression_internal_schema_unique_items.cpp:33: src/mongo/bson/unordered_fields_bsonelement_comparator.h: In member function 'virtual void mongo::UnorderedFieldsBSONElementComparator::hash_combine(size_t&, const mongo::BSONElement&) const': src/mongo/bson/unordered_fields_bsonelement_comparator.h:53:31: note: parameter passing for argument of type 'const mongo::BSONElement' changed in GCC 7.1 53 | hashCombineBSONElement(seed, toHash, ComparisonRules::kIgnoreFieldOrder, kStringComparator); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_where_noop.cpp: In member function 'virtual std::unique_ptr mongo::WhereNoOpMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_where_noop.cpp:57:21: warning: redundant move in return statement [-Wredundant-move] 57 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_where_noop.cpp:57:21: note: remove 'std::move' call src/mongo/db/matcher/rewrite_expr.cpp: In member function 'std::unique_ptr mongo::RewriteExpr::_rewriteAndExpression(const boost::intrusive_ptr&)': src/mongo/db/matcher/rewrite_expr.cpp:89:25: warning: redundant move in return statement [-Wredundant-move] 89 | return std::move(andMatch); | ~~~~~~~~~^~~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:89:25: note: remove 'std::move' call src/mongo/db/matcher/rewrite_expr.cpp: In member function 'std::unique_ptr mongo::RewriteExpr::_rewriteOrExpression(const boost::intrusive_ptr&)': src/mongo/db/matcher/rewrite_expr.cpp:110:25: warning: redundant move in return statement [-Wredundant-move] 110 | return std::move(orMatch); | ~~~~~~~~~^~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:110:25: note: remove 'std::move' call src/mongo/db/matcher/rewrite_expr.cpp: In member function 'std::unique_ptr mongo::RewriteExpr::_buildComparisonMatchExpression(mongo::ExpressionCompare::CmpOp, mongo::BSONElement)': src/mongo/db/matcher/rewrite_expr.cpp:158:21: warning: redundant move in return statement [-Wredundant-move] 158 | return std::move(eqMatchExpr); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp:158:21: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/schema/expression_internal_schema_num_array_items.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/list_collections_filter.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/list_collections_filter.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_where_base.h:33, from src/mongo/db/matcher/expression_where_base.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_where_base.h:33, from src/mongo/db/matcher/expression_where_base.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/catalog_cache_loader.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/catalog_cache_loader.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_path.h:33, from src/mongo/db/matcher/expression_array.h:40, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.h:34, from src/mongo/db/matcher/schema/expression_internal_schema_num_array_items.cpp:33: src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchObjectMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:87:25: warning: redundant move in return statement [-Wredundant-move] 87 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:87:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::ElemMatchValueMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:142:25: warning: redundant move in return statement [-Wredundant-move] 142 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:142:25: note: remove 'std::move' call src/mongo/db/matcher/expression_array.h: In member function 'virtual std::unique_ptr mongo::SizeMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_array.h:179:25: warning: redundant move in return statement [-Wredundant-move] 179 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_array.h:179:25: note: remove 'std::move' call src/mongo/db/matcher/rewrite_expr.cpp:150:34: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 150 | std::unique_ptr RewriteExpr::_buildComparisonMatchExpression( | ^~~~~~~~~~~ src/mongo/db/matcher/rewrite_expr.cpp: In member function 'std::unique_ptr mongo::RewriteExpr::_rewriteComparisonExpression(const boost::intrusive_ptr&)': src/mongo/db/matcher/rewrite_expr.cpp:147:78: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 147 | return _buildComparisonMatchExpression(cmpOperator, cmpObj.firstElement()); | ^ src/mongo/db/matcher/rewrite_expr.cpp:147:78: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/shard_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/shard_util.cpp ar rcsTD build/opt/mongo/db/matcher/libexpressions.a build/opt/mongo/db/matcher/expression.o build/opt/mongo/db/matcher/expression_algo.o build/opt/mongo/db/matcher/expression_array.o build/opt/mongo/db/matcher/expression_expr.o build/opt/mongo/db/matcher/expression_geo.o build/opt/mongo/db/matcher/expression_internal_expr_eq.o build/opt/mongo/db/matcher/expression_leaf.o build/opt/mongo/db/matcher/expression_parser.o build/opt/mongo/db/matcher/expression_text_base.o build/opt/mongo/db/matcher/expression_text_noop.o build/opt/mongo/db/matcher/expression_tree.o build/opt/mongo/db/matcher/expression_type.o build/opt/mongo/db/matcher/expression_where_base.o build/opt/mongo/db/matcher/expression_where_noop.o build/opt/mongo/db/matcher/expression_with_placeholder.o build/opt/mongo/db/matcher/extensions_callback.o build/opt/mongo/db/matcher/extensions_callback_noop.o build/opt/mongo/db/matcher/match_details.o build/opt/mongo/db/matcher/matchable.o build/opt/mongo/db/matcher/matcher.o build/opt/mongo/db/matcher/matcher_type_set.o build/opt/mongo/db/matcher/rewrite_expr.o build/opt/mongo/db/matcher/schema/expression_internal_schema_all_elem_match_from_index.o build/opt/mongo/db/matcher/schema/expression_internal_schema_allowed_properties.o build/opt/mongo/db/matcher/schema/expression_internal_schema_cond.o build/opt/mongo/db/matcher/schema/expression_internal_schema_eq.o build/opt/mongo/db/matcher/schema/expression_internal_schema_fmod.o build/opt/mongo/db/matcher/schema/expression_internal_schema_match_array_index.o build/opt/mongo/db/matcher/schema/expression_internal_schema_num_array_items.o build/opt/mongo/db/matcher/schema/expression_internal_schema_num_properties.o build/opt/mongo/db/matcher/schema/expression_internal_schema_object_match.o build/opt/mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.o build/opt/mongo/db/matcher/schema/expression_internal_schema_str_length.o build/opt/mongo/db/matcher/schema/expression_internal_schema_unique_items.o build/opt/mongo/db/matcher/schema/expression_internal_schema_xor.o build/opt/mongo/db/matcher/schema/json_schema_parser.o Skipping ranlib for thin archive build/opt/mongo/db/matcher/libexpressions.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/sharding_egress_metadata_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/sharding_egress_metadata_hook.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2.cc /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s1angle.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s1angle.cc src/mongo/s/shard_util.cpp: In function 'mongo::StatusWith > > mongo::shardutil::selectChunkSplitPoints(mongo::OperationContext*, const mongo::ShardId&, const mongo::NamespaceString&, const mongo::ShardKeyPattern&, const mongo::ChunkRange&, long long int, boost::optional)': src/mongo/s/shard_util.cpp:135:21: warning: redundant move in return statement [-Wredundant-move] 135 | return std::move(splitPoints); | ~~~~~~~~~^~~~~~~~~~~~~ src/mongo/s/shard_util.cpp:135:21: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2loop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2loop.cc /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2cap.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2cap.cc /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2region.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2region.cc src/third_party/s2/s2loop.cc: In member function 'void S2Loop::Init(const std::vector >&)': src/third_party/s2/s2loop.cc:97:73: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'S2Point' {aka 'class Vector3'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 97 | memcpy(vertices_, &vertices[0], num_vertices_ * sizeof(vertices_[0])); | ^ In file included from src/third_party/s2/util/math/vector3-inl.h:29, from src/third_party/s2/s2.h:26, from src/third_party/s2/s2loop.cc:16: src/third_party/s2/util/math/vector3.h:30:7: note: 'S2Point' {aka 'class Vector3'} declared here 30 | class Vector3 { | ^~~~~~~ src/third_party/s2/s2loop.cc: In constructor 'S2Loop::S2Loop(const S2Loop*)': src/third_party/s2/s2loop.cc:268:73: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'S2Point' {aka 'class Vector3'} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 268 | memcpy(vertices_, src->vertices_, num_vertices_ * sizeof(vertices_[0])); | ^ In file included from src/third_party/s2/util/math/vector3-inl.h:29, from src/third_party/s2/s2.h:26, from src/third_party/s2/s2loop.cc:16: src/third_party/s2/util/math/vector3.h:30:7: note: 'S2Point' {aka 'class Vector3'} declared here 30 | class Vector3 { | ^~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2latlng.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2latlng.cc /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2cellunion.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2cellunion.cc ar rcsTD build/opt/mongo/s/libcoreshard.a build/opt/mongo/s/catalog_cache_loader.o build/opt/mongo/s/cluster_identity_loader.o build/opt/mongo/s/config_server_catalog_cache_loader.o build/opt/mongo/s/config_server_client.o build/opt/mongo/s/shard_util.o build/opt/mongo/s/sharding_egress_metadata_hook.o Skipping ranlib for thin archive build/opt/mongo/s/libcoreshard.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s1interval.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s1interval.cc In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/set:60, from src/third_party/s2/s2loop.cc:9: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h: In member function 'std::pair std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_get_insert_hint_unique_pos(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, const key_type&) [with _Key = Vector3; _Val = std::pair, int>; _KeyOfValue = std::_Select1st, int> >; _Compare = std::less >; _Alloc = std::allocator, int> >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_tree.h:2187:5: note: parameter passing for argument of type 'std::_Rb_tree, std::pair, int>, std::_Select1st, int> >, std::less >, std::allocator, int> > >::const_iterator' {aka 'std::_Rb_tree_const_iterator, int> >'} changed in GCC 7.1 2187 | _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/third_party/s2/s2cell.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -DDEBUG_MODE=false -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/third_party/s2/s2cell.cc In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/third_party/s2/s2cellunion.h:6, from src/third_party/s2/s2cellunion.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const S2CellId&}; _Tp = S2CellId; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/third_party/s2/s2cellunion.h:6, from src/third_party/s2/s2cellunion.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2CellUnion::GetIntersection(const S2CellUnion*, const S2CellId&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2CellUnion::Denormalize(int, int, std::vector*) const': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In function 'void GetDifferenceInternal(S2CellId, const S2CellUnion*, std::vector*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/third_party/s2/s2cellunion.h:6, from src/third_party/s2/s2cellunion.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = S2CellId; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/logger/log_severity.h:36, from src/third_party/s2/base/logging.h:19, from src/third_party/s2/s2cellunion.h:10, from src/third_party/s2/s2cellunion.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1839 | __insertion_sort(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1839:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:61, from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/logger/log_severity.h:36, from src/third_party/s2/base/logging.h:19, from src/third_party/s2/s2cellunion.h:10, from src/third_party/s2/s2cellunion.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h: In function 'void std::__adjust_heap(_RandomAccessIterator, _Distance, _Distance, _Tp, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Distance = int; _Tp = S2CellId; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_heap.h:214:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 214 | __adjust_heap(_RandomAccessIterator __first, _Distance __holeIndex, | ^~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/algorithm:62, from src/mongo/base/string_data.h:35, from src/mongo/logger/log_severity.h:36, from src/third_party/s2/base/logging.h:19, from src/third_party/s2/s2cellunion.h:10, from src/third_party/s2/s2cellunion.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In function 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator >; _Size = int; _Compare = __gnu_cxx::__ops::_Iter_less_iter]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1939 | __introsort_loop(_RandomAccessIterator __first, | ^~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1939:5: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1953:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1953 | std::__introsort_loop(__cut, __last, __depth_limit, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h: In member function 'bool S2CellUnion::Normalize()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1967:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1967 | std::__introsort_loop(__first, __last, | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ 1968 | std::__lg(__last - __first) * 2, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1969 | __comp); | ~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1884:25: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1884 | std::__insertion_sort(__first, __first + int(_S_threshold), __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_algo.h:1889:23: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1889 | std::__insertion_sort(__first, __last, __comp); | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/third_party/s2/s2cellunion.h:6, from src/third_party/s2/s2cellunion.cc:3: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2CellUnion::Expand(int)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ Creating 'build/opt/mongo/util/version_constants.h' /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2CellUnion::Add(const std::vector&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/version_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/version_impl.cpp /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2CellUnion::GetUnion(const S2CellUnion*, const S2CellUnion*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2CellUnion::GetIntersection(const S2CellUnion*, const S2CellUnion*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void S2CellUnion::InitFromRange(const S2CellId&, const S2CellId&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/operation_sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/operation_sharding_state.cpp ar rcsTD build/opt/mongo/db/liblogical_session_id_helpers.a build/opt/mongo/db/logical_session_id_helpers.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_id_helpers.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/operation_latency_histogram.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/operation_latency_histogram.cpp ar rcsTD build/opt/third_party/s2/libs2.a build/opt/third_party/s2/s1angle.o build/opt/third_party/s2/s2.o build/opt/third_party/s2/s2cellid.o build/opt/third_party/s2/s2latlng.o build/opt/third_party/s2/s1interval.o build/opt/third_party/s2/s2cap.o build/opt/third_party/s2/s2cell.o build/opt/third_party/s2/s2cellunion.o build/opt/third_party/s2/s2edgeindex.o build/opt/third_party/s2/s2edgeutil.o build/opt/third_party/s2/s2latlngrect.o build/opt/third_party/s2/s2loop.o build/opt/third_party/s2/s2pointregion.o build/opt/third_party/s2/s2polygon.o build/opt/third_party/s2/s2polygonbuilder.o build/opt/third_party/s2/s2polyline.o build/opt/third_party/s2/s2r2rect.o build/opt/third_party/s2/s2region.o build/opt/third_party/s2/s2regioncoverer.o build/opt/third_party/s2/s2regionintersection.o build/opt/third_party/s2/s2regionunion.o Skipping ranlib for thin archive build/opt/third_party/s2/libs2.a ar rcsTD build/opt/mongo/db/ops/libwrite_ops_exec.a build/opt/mongo/db/ops/write_ops_exec.o Skipping ranlib for thin archive build/opt/mongo/db/ops/libwrite_ops_exec.a ar rcsTD build/opt/mongo/db/repl/libdata_replicator_external_state_impl.a build/opt/mongo/db/repl/data_replicator_external_state_impl.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libdata_replicator_external_state_impl.a ar rcsTD build/opt/mongo/s/libsharding_legacy_api.a build/opt/mongo/s/client/parallel.o build/opt/mongo/s/client/shard_connection.o build/opt/mongo/s/client/version_manager.o Skipping ranlib for thin archive build/opt/mongo/s/libsharding_legacy_api.a ar rcsTD build/opt/third_party/murmurhash3/libmurmurhash3.a build/opt/third_party/murmurhash3/MurmurHash3.o Skipping ranlib for thin archive build/opt/third_party/murmurhash3/libmurmurhash3.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/value.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/value.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/pipeline/document_comparator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/pipeline/document_comparator.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/operation_latency_histogram.h:34, from src/mongo/db/stats/operation_latency_histogram.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/value.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/operation_latency_histogram.h:34, from src/mongo/db/stats/operation_latency_histogram.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/value.cpp:45: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/operation_latency_histogram.h:34, from src/mongo/db/stats/operation_latency_histogram.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/operation_latency_histogram.h:34, from src/mongo/db/stats/operation_latency_histogram.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/document_comparator.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/document_comparator.h:34, from src/mongo/db/pipeline/document_comparator.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/storage/mmap_v1/liblogfile.a build/opt/mongo/db/storage/mmap_v1/logfile.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/liblogfile.a ar rcsTD build/opt/mongo/db/librepair_database.a build/opt/mongo/db/repair_database.o Skipping ranlib for thin archive build/opt/mongo/db/librepair_database.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/dur_commitjob.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/dur_commitjob.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/commands/refresh_sessions_command_internal.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/commands/refresh_sessions_command_internal.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/bson/bsonelement.h:39, from src/mongo/bson/bsonmisc.h:35, from src/mongo/db/pipeline/value_internal.h:37, from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/value.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {mongo::Value}; _Tp = mongo::Value; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/stats/operation_latency_histogram.h:34, from src/mongo/db/stats/operation_latency_histogram.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/storage/mmap_v1/dur_commitjob.cpp:37: src/mongo/db/storage/mmap_v1/dur_commitjob.h: In instantiation of 'void mongo::dur::Already::clear() [with int Prime = 127]': src/mongo/db/storage/mmap_v1/dur_commitjob.cpp:114:25: required from here src/mongo/db/storage/mmap_v1/dur_commitjob.h:101:15: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::dur::Already<127>' with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess] 101 | memset(this, 0, sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/storage/mmap_v1/dur_commitjob.h:92:7: note: 'class mongo::dur::Already<127>' declared here 92 | class Already { | ^~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_details.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ ar rcsTD build/opt/mongo/db/pipeline/libdocument_value.a build/opt/mongo/db/pipeline/document.o build/opt/mongo/db/pipeline/document_comparator.o build/opt/mongo/db/pipeline/document_path_support.o build/opt/mongo/db/pipeline/value.o build/opt/mongo/db/pipeline/value_comparator.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libdocument_value.a ar rcsTD build/opt/mongo/transport/libtransport_layer_manager.a build/opt/mongo/transport/transport_layer_manager.o Skipping ranlib for thin archive build/opt/mongo/transport/libtransport_layer_manager.a ar rcsTD build/opt/mongo/db/repl/librollback_checker.a build/opt/mongo/db/repl/rollback_checker.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librollback_checker.a ar rcsTD build/opt/mongo/db/auth/libsaslauth.a build/opt/mongo/db/auth/sasl_mechanism_registry.o build/opt/mongo/db/auth/sasl_plain_server_conversation.o build/opt/mongo/db/auth/sasl_scram_server_conversation.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libsaslauth.a In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/liblog_process_details.a build/opt/mongo/db/log_process_details.o src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call Skipping ranlib for thin archive build/opt/mongo/db/liblog_process_details.a src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/stats/libtop.a build/opt/mongo/db/stats/top.o build/opt/mongo/db/stats/operation_latency_histogram.o Skipping ranlib for thin archive build/opt/mongo/db/stats/libtop.a ar rcsTD build/opt/mongo/client/libfetcher.a build/opt/mongo/client/fetcher.o Skipping ranlib for thin archive build/opt/mongo/client/libfetcher.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/server_parameters.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/server_parameters.cpp In file included from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:33: src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::init()': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:151:42: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 151 | memset(this, 0, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h: In member function 'void mongo::NamespaceDetails::Extra::copy(mongo::NamespaceDetails*, const mongo::NamespaceDetails::Extra&)': src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:160:43: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::NamespaceDetails::Extra' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 160 | memcpy(this, &e, sizeof(Extra)); | ^ src/mongo/db/storage/mmap_v1/catalog/namespace_details.h:128:11: note: 'class mongo::NamespaceDetails::Extra' declared here 128 | class Extra { | ^~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:39: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:39: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:39: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:39: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/concurrency/deferred_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/concurrency/deferred_writer.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/refresh_sessions_command_internal.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_init.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_init.cpp ar rcsTD build/opt/mongo/db/libinitialize_snmp.a build/opt/mongo/db/initialize_snmp.o Skipping ranlib for thin archive build/opt/mongo/db/libinitialize_snmp.a ar rcsTD build/opt/mongo/db/repl/liboptime.a build/opt/mongo/db/repl/bson_extract_optime.o build/opt/mongo/db/repl/optime.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboptime.a ar rcsTD build/opt/mongo/util/libsignal_handlers.a build/opt/mongo/util/signal_handlers.o build/opt/mongo/util/signal_win32.o Skipping ranlib for thin archive build/opt/mongo/util/libsignal_handlers.a /home/buildroot/autobuild/instance-1/output-1/host/bin/python buildscripts/idl/idlc.py --include src --base_dir build/opt --target_arch arm --header build/opt/mongo/db/create_indexes_gen.h --output build/opt/mongo/db/create_indexes_gen.cpp src/mongo/db/create_indexes.idl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/sessions_collection.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/sessions_collection.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/concurrency/deferred_writer.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/concurrency/deferred_writer.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/concurrency/deferred_writer.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/concurrency/deferred_writer.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/storage_init.cpp:36: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/storage_init.cpp:36: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/storage_init.cpp:36: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/storage_init.cpp:36: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/storage/mmap_v1/catalog/namespace_details.cpp:39: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/create_indexes_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/create_indexes_gen.cpp src/mongo/db/concurrency/deferred_writer.cpp: In member function 'mongo::StatusWith > mongo::DeferredWriter::_getCollection(mongo::OperationContext*)': src/mongo/db/concurrency/deferred_writer.cpp:94:21: warning: redundant move in return statement [-Wredundant-move] 94 | return std::move(agc); | ~~~~~~~~~^~~~~ src/mongo/db/concurrency/deferred_writer.cpp:94:21: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from build/opt/mongo/db/logical_session_id_gen.h:14, from src/mongo/db/logical_session_id.h:36, from src/mongo/db/sessions_collection.h:33, from src/mongo/db/sessions_collection.cpp:33: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::NewIndexSpec}; _Tp = mongo::NewIndexSpec; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/storage_init.cpp:36: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In static member function 'static mongo::BSONObj mongo::SessionsCollection::generateCreateIndexesCmd()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/storage/libstorage_init_d.a build/opt/mongo/db/storage/storage_init.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_init_d.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_process.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_process.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/create_indexes_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/create_indexes_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/create_indexes_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/create_indexes_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/concurrency/deferred_writer.h:33, from src/mongo/db/concurrency/deferred_writer.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/net/hostname_canonicalization.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/net/hostname_canonicalization.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/replication_process.cpp:43: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/replication_process.cpp:43: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/replication_process.cpp:43: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/replication_process.cpp:43: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/concurrency/libdeferred_writer.a build/opt/mongo/db/concurrency/deferred_writer.o Skipping ranlib for thin archive build/opt/mongo/db/concurrency/libdeferred_writer.a ar rcsTD build/opt/mongo/transport/libmessage_compressor.a build/opt/mongo/transport/message_compressor_manager.o build/opt/mongo/transport/message_compressor_metrics.o build/opt/mongo/transport/message_compressor_registry.o build/opt/mongo/transport/message_compressor_snappy.o build/opt/mongo/transport/message_compressor_zlib.o Skipping ranlib for thin archive build/opt/mongo/transport/libmessage_compressor.a ar rcsTD build/opt/mongo/s/libcluster_last_error_info.a build/opt/mongo/s/cluster_last_error_info.o Skipping ranlib for thin archive build/opt/mongo/s/libcluster_last_error_info.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/op_observer.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/create_indexes_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/liblogical_time_metadata_hook.a build/opt/mongo/db/logical_time_metadata_hook.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_time_metadata_hook.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/procparser.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/procparser.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from build/opt/mongo/db/create_indexes_gen.h:14, from build/opt/mongo/db/create_indexes_gen.cpp:9: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {mongo::NewIndexSpec}; _Tp = mongo::NewIndexSpec; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void mongo::CreateIndexesCmd::parseProtected(const mongo::IDLParserErrorContext&, const mongo::BSONObj&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/libsessions_collection.a build/opt/mongo/db/sessions_collection.o build/opt/mongo/db/create_indexes_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libsessions_collection.a ar rcsTD build/opt/mongo/s/write_ops/libbatch_write_types.a build/opt/mongo/s/write_ops/batched_command_request.o build/opt/mongo/s/write_ops/batched_command_response.o build/opt/mongo/s/write_ops/batched_upsert_detail.o build/opt/mongo/s/write_ops/write_error_detail.o Skipping ranlib for thin archive build/opt/mongo/s/write_ops/libbatch_write_types.a ar rcsTD build/opt/mongo/crypto/libsha1_block.a build/opt/mongo/crypto/sha1_block.o Skipping ranlib for thin archive build/opt/mongo/crypto/libsha1_block.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_queue.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_queue.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/replication_process.cpp:43: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/util/procparser.h:35, from src/mongo/util/procparser.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {const long long unsigned int&}; _Tp = long long unsigned int; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/repl/libreplication_process.a build/opt/mongo/db/repl/replication_consistency_markers.o build/opt/mongo/db/repl/replication_process.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libreplication_process.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/dbmessage.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/dbmessage.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/util/procparser.h:35, from src/mongo/util/procparser.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In function 'mongo::Status mongo::procparser::parseProcDiskStats(const std::vector&, mongo::StringData, mongo::BSONObjBuilder*)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1195:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 1195 | _M_realloc_insert(end(), __x); | ^~~~~~~~~~~~~~~~~ src/mongo/util/procparser.cpp:630:1: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 630 | } | ^ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_coordinator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator.cpp ar rcsTD build/opt/mongo/db/libserver_parameters.a build/opt/mongo/db/server_parameters.o Skipping ranlib for thin archive build/opt/mongo/db/libserver_parameters.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/mmap_v1_engine.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/op_observer.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libdbmessage.a build/opt/mongo/db/dbmessage.o Skipping ranlib for thin archive build/opt/mongo/db/libdbmessage.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/aligned_builder.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/aligned_builder.cpp ar rcsTD build/opt/mongo/db/libop_observer.a build/opt/mongo/db/op_observer.o Skipping ranlib for thin archive build/opt/mongo/db/libop_observer.a ar rcsTD build/opt/mongo/db/auth/libsecurity_file.a build/opt/mongo/db/auth/security_file.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libsecurity_file.a ar rcsTD build/opt/third_party/libshim_allocator.a build/opt/third_party/shim_allocator.o Skipping ranlib for thin archive build/opt/third_party/libshim_allocator.a ar rcsTD build/opt/mongo/db/auth/libsasl_options.a build/opt/mongo/db/auth/sasl_options.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libsasl_options.a ar rcsTD build/opt/third_party/libshim_snappy.a build/opt/third_party/shim_snappy.o Skipping ranlib for thin archive build/opt/third_party/libshim_snappy.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/sharding_initialization.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/sharding_initialization.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/client/sharding_network_connection_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/client/sharding_network_connection_hook.cpp ar rcsTD build/opt/mongo/db/repl/librepl_coordinator_interface.a build/opt/mongo/db/repl/repl_client_info.o build/opt/mongo/db/repl/replication_coordinator.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_coordinator_interface.a ar rcsTD build/opt/mongo/client/libclient_query.a build/opt/mongo/client/query.o Skipping ranlib for thin archive build/opt/mongo/client/libclient_query.a ar rcsTD build/opt/mongo/executor/libnetwork_interface.a build/opt/mongo/executor/network_interface.o Skipping ranlib for thin archive build/opt/mongo/executor/libnetwork_interface.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/stats/storage_stats.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/stats/storage_stats.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:46: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:46: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:46: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:46: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/stats/storage_stats.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/stats/storage_stats.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/stats/storage_stats.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/stats/storage_stats.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:67: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/matcher/expression_parser.h:37, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:67: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:67: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libcollection_index_usage_tracker.a build/opt/mongo/db/collection_index_usage_tracker.o Skipping ranlib for thin archive build/opt/mongo/db/libcollection_index_usage_tracker.a ar rcsTD build/opt/mongo/scripting/libscripting.a build/opt/mongo/scripting/scripting_none.o Skipping ranlib for thin archive build/opt/mongo/scripting/libscripting.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/durop.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/durop.cpp src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:67: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/mmap_v1_engine.cpp:46: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/concurrency/libspin_lock.a build/opt/mongo/util/concurrency/spin_lock.o Skipping ranlib for thin archive build/opt/mongo/util/concurrency/libspin_lock.a ar rcsTD build/opt/mongo/util/options_parser/liboptions_parser_init.a build/opt/mongo/util/options_parser/options_parser_init.o Skipping ranlib for thin archive build/opt/mongo/util/options_parser/liboptions_parser_init.a ar rcsTD build/opt/mongo/db/libgeneric_cursor.a build/opt/mongo/db/generic_cursor_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libgeneric_cursor.a In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/query/cluster_client_cursor_params.h:43, from src/mongo/s/query/cluster_client_cursor.h:39, from src/mongo/s/query/cluster_cursor_manager.h:43, from src/mongo/s/sharding_initialization.cpp:67: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/data_file_sync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/data_file_sync.cpp src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/geo/shapes.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/geo/shapes.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/stats/storage_stats.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/libsharding_initialization.a build/opt/mongo/s/sharding_initialization.o build/opt/mongo/s/client/sharding_connection_hook.o build/opt/mongo/s/client/sharding_network_connection_hook.o Skipping ranlib for thin archive build/opt/mongo/s/libsharding_initialization.a ar rcsTD build/opt/mongo/util/libfail_point.a build/opt/mongo/util/fail_point.o build/opt/mongo/util/fail_point_registry.o build/opt/mongo/util/fail_point_server_parameter.o build/opt/mongo/util/fail_point_service.o Skipping ranlib for thin archive build/opt/mongo/util/libfail_point.a ar rcsTD build/opt/mongo/db/repl/liboplogreader.a build/opt/mongo/db/repl/oplogreader.o Skipping ranlib for thin archive build/opt/mongo/db/repl/liboplogreader.a ar rcsTD build/opt/mongo/crypto/libsha_block_openssl.a build/opt/mongo/crypto/sha_block_openssl.o Skipping ranlib for thin archive build/opt/mongo/crypto/libsha_block_openssl.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/storage_file_util.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/storage_file_util.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from src/mongo/db/geo/shapes.h:35, from src/mongo/db/geo/shapes.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_range_insert(std::vector<_Tp, _Alloc>::iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = __gnu_cxx::__normal_iterator >; _Tp = mongo::Point; _Alloc = std::allocator]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 721 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:721:7: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:67, from src/mongo/db/geo/shapes.h:35, from src/mongo/db/geo/shapes.cpp:31: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h: In member function 'void mongo::Polygon::init(const std::vector&)': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type 'std::vector::iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 1662 | _M_range_insert(__pos, __first, __last, | ^~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/stl_vector.h:1662:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator >' changed in GCC 7.1 ar rcsTD build/opt/mongo/db/commands/liblist_collections_filter.a build/opt/mongo/db/commands/list_collections_filter.o Skipping ranlib for thin archive build/opt/mongo/db/commands/liblist_collections_filter.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/matcher/path.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/matcher/path.cpp ar rcsTD build/opt/mongo/db/geo/libgeometry.a build/opt/mongo/db/geo/hash.o build/opt/mongo/db/geo/shapes.o build/opt/mongo/db/geo/big_polygon.o build/opt/mongo/db/geo/r2_region_coverer.o Skipping ranlib for thin archive build/opt/mongo/db/geo/libgeometry.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/cmdline_utils/censor_cmdline.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/cmdline_utils/censor_cmdline.cpp ar rcsTD build/opt/mongo/db/storage/libstorage_file_util.a build/opt/mongo/db/storage/storage_file_util.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_file_util.a ar rcsTD build/opt/mongo/s/commands/libcluster_commands_helpers.a build/opt/mongo/s/commands/cluster_commands_helpers.o Skipping ranlib for thin archive build/opt/mongo/s/commands/libcluster_commands_helpers.a ar rcsTD build/opt/mongo/db/stats/libfill_locker_info.a build/opt/mongo/db/stats/fill_locker_info.o Skipping ranlib for thin archive build/opt/mongo/db/stats/libfill_locker_info.a ar rcsTD build/opt/mongo/db/libdbhelpers.a build/opt/mongo/db/dbhelpers.o Skipping ranlib for thin archive build/opt/mongo/db/libdbhelpers.a ar rcsTD build/opt/mongo/db/stats/libserveronly_stats.a build/opt/mongo/db/stats/latency_server_status_section.o build/opt/mongo/db/stats/lock_server_status_section.o build/opt/mongo/db/stats/storage_stats.o Skipping ranlib for thin archive build/opt/mongo/db/stats/libserveronly_stats.a ar rcsTD build/opt/mongo/db/pipeline/libdependencies.a build/opt/mongo/db/pipeline/dependencies.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libdependencies.a ar rcsTD build/opt/mongo/s/libis_mongos.a build/opt/mongo/s/is_mongos.o Skipping ranlib for thin archive build/opt/mongo/s/libis_mongos.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/kill_sessions_gen.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc build/opt/mongo/db/kill_sessions_gen.cpp src/mongo/db/matcher/path.cpp: In member function 'void mongo::ElementIterator::Context::reset(mongo::BSONElement, mongo::BSONElement)': src/mongo/db/matcher/path.cpp:54:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 54 | void ElementIterator::Context::reset(BSONElement element, BSONElement arrayOffset) { | ^~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp:54:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 src/mongo/db/matcher/path.cpp: In member function 'void mongo::BSONElementIterator::_setTraversalStart(size_t, mongo::BSONElement)': src/mongo/db/matcher/path.cpp:128:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 128 | void BSONElementIterator::_setTraversalStart(size_t suffixIndex, BSONElement elementToIterate) { | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp: In constructor 'mongo::BSONElementIterator::BSONElementIterator(const mongo::ElementPath*, size_t, mongo::BSONElement)': src/mongo/db/matcher/path.cpp:87:1: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 87 | BSONElementIterator::BSONElementIterator(const ElementPath* path, | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp:91:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 91 | _setTraversalStart(suffixIndex, elementToIterate); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp: In member function 'void mongo::BSONElementIterator::reset(const mongo::ElementPath*, size_t, mongo::BSONElement)': src/mongo/db/matcher/path.cpp:102:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 102 | void BSONElementIterator::reset(const ElementPath* path, | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp:108:23: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 108 | _setTraversalStart(suffixIndex, elementToIterate); | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp: In member function 'void mongo::BSONElementIterator::ArrayIterationState::startIterator(mongo::BSONElement)': src/mongo/db/matcher/path.cpp:161:6: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 161 | void BSONElementIterator::ArrayIterationState::startIterator(BSONElement e) { | ^~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp: In member function 'virtual bool mongo::BSONElementIterator::more()': src/mongo/db/matcher/path.cpp:263:43: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 263 | _arrayIterationState.startIterator(_traversalStart); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ src/mongo/db/matcher/path.cpp:321:61: note: parameter passing for argument of type 'mongo::BSONElement' changed in GCC 7.1 321 | real->_arrayIterationState.startIterator(eltInArray); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/dur_recovery_unit.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/dur_recovery_unit.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/server_status.h:35, from src/mongo/db/storage/mmap_v1/data_file_sync.h:33, from src/mongo/db/storage/mmap_v1/data_file_sync.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/util/cmdline_utils/libcmdline_utils.a build/opt/mongo/util/cmdline_utils/censor_cmdline.o Skipping ranlib for thin archive build/opt/mongo/util/cmdline_utils/libcmdline_utils.a ar rcsTD build/opt/mongo/bson/util/libbson_extract.a build/opt/mongo/bson/util/bson_extract.o Skipping ranlib for thin archive build/opt/mongo/bson/util/libbson_extract.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/key_generator.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/key_generator.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/file_manager.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/file_manager.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/kill_sessions_gen.cpp:16: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/kill_sessions_gen.cpp:16: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/kill_sessions_gen.cpp:16: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/kill_sessions_gen.cpp:16: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/mmap_v1/libstorage_mmapv1.a build/opt/mongo/db/storage/mmap_v1/aligned_builder.o build/opt/mongo/db/storage/mmap_v1/catalog/hashtab.o build/opt/mongo/db/storage/mmap_v1/catalog/index_details.o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_details.o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.o build/opt/mongo/db/storage/mmap_v1/catalog/namespace_index.o build/opt/mongo/db/storage/mmap_v1/commit_notifier.o build/opt/mongo/db/storage/mmap_v1/data_file.o build/opt/mongo/db/storage/mmap_v1/data_file_sync.o build/opt/mongo/db/storage/mmap_v1/durable_mapped_file.o build/opt/mongo/db/storage/mmap_v1/dur.o build/opt/mongo/db/storage/mmap_v1/durop.o build/opt/mongo/db/storage/mmap_v1/dur_preplogbuffer.o build/opt/mongo/db/storage/mmap_v1/dur_commitjob.o build/opt/mongo/db/storage/mmap_v1/dur_recover.o build/opt/mongo/db/storage/mmap_v1/dur_journal.o build/opt/mongo/db/storage/mmap_v1/dur_journal_writer.o build/opt/mongo/db/storage/mmap_v1/dur_recovery_unit.o build/opt/mongo/db/storage/mmap_v1/journal_latency_test_cmd.o build/opt/mongo/db/storage/mmap_v1/mmap_v1_database_catalog_entry.o build/opt/mongo/db/storage/mmap_v1/mmap_v1_engine.o build/opt/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.o build/opt/mongo/db/storage/mmap_v1/mmap_v1_noinit.o build/opt/mongo/db/storage/mmap_v1/repair_database.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libstorage_mmapv1.a ar rcsTD build/opt/mongo/crypto/libsha256_block.a build/opt/mongo/crypto/sha256_block.o Skipping ranlib for thin archive build/opt/mongo/crypto/libsha256_block.a ar rcsTD build/opt/mongo/util/libversion_impl.a build/opt/mongo/util/version_impl.o Skipping ranlib for thin archive build/opt/mongo/util/libversion_impl.a ar rcsTD build/opt/mongo/db/storage/libbson_collection_catalog_entry.a build/opt/mongo/db/storage/bson_collection_catalog_entry.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libbson_collection_catalog_entry.a ar rcsTD build/opt/mongo/db/index/libexpression_params.a build/opt/mongo/db/index/expression_params.o build/opt/mongo/db/index/s2_common.o Skipping ranlib for thin archive build/opt/mongo/db/index/libexpression_params.a ar rcsTD build/opt/mongo/db/liblogical_clock.a build/opt/mongo/db/logical_clock.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_clock.a ar rcsTD build/opt/mongo/db/libcurop.a build/opt/mongo/db/curop.o Skipping ranlib for thin archive build/opt/mongo/db/libcurop.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/bgsync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/bgsync.cpp ar rcsTD build/opt/mongo/db/libkeys_collection_manager.a build/opt/mongo/db/keys_collection_manager.o build/opt/mongo/db/keys_collection_cache.o build/opt/mongo/db/key_generator.o Skipping ranlib for thin archive build/opt/mongo/db/libkeys_collection_manager.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/data_replicator_external_state_initial_sync.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp In file included from /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/vector:72, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path_traits.hpp:26, from /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/boost/filesystem/path.hpp:26, from src/mongo/db/ftdc/file_manager.h:33, from src/mongo/db/ftdc/file_manager.cpp:35: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(std::vector<_Tp, _Alloc>::iterator, _Args&& ...) [with _Args = {std::tuple}; _Tp = std::tuple; _Alloc = std::allocator >]': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:426:7: note: parameter passing for argument of type 'std::vector >::iterator' {aka '__gnu_cxx::__normal_iterator*, std::vector > >'} changed in GCC 7.1 426 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc: In member function 'std::vector > mongo::FTDCFileManager::recoverInterimFile()': /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/arm-buildroot-linux-gnueabihf/include/c++/9.2.0/bits/vector.tcc:121:4: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator*, std::vector > >' changed in GCC 7.1 121 | _M_realloc_insert(end(), std::forward<_Args>(__args)...); | ^~~~~~~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from build/opt/mongo/db/kill_sessions_gen.cpp:16: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/commands/libservers.a build/opt/mongo/db/commands/authentication_commands.o build/opt/mongo/db/commands/conn_pool_stats.o build/opt/mongo/db/commands/conn_pool_sync.o build/opt/mongo/db/commands/connection_status.o build/opt/mongo/db/commands/generic_servers.o build/opt/mongo/db/commands/isself.o build/opt/mongo/db/commands/mr_common.o build/opt/mongo/db/commands/reap_logical_session_cache_now.o build/opt/mongo/db/commands/refresh_sessions_command_internal.o build/opt/mongo/db/commands/user_management_commands_common.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libservers.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/free_mon/free_mon_op_observer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/free_mon/free_mon_op_observer.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/bgsync.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/bgsync.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/bgsync.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/bgsync.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/free_mon/free_mon_op_observer.h:34, from src/mongo/db/free_mon/free_mon_op_observer.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/free_mon/free_mon_op_observer.h:34, from src/mongo/db/free_mon/free_mon_op_observer.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/free_mon/free_mon_op_observer.h:34, from src/mongo/db/free_mon/free_mon_op_observer.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/free_mon/free_mon_op_observer.h:34, from src/mongo/db/free_mon/free_mon_op_observer.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/libkill_sessions.a build/opt/mongo/db/kill_sessions.o build/opt/mongo/db/kill_sessions_common.o build/opt/mongo/db/session_killer.o build/opt/mongo/db/kill_sessions_gen.o Skipping ranlib for thin archive build/opt/mongo/db/libkill_sessions.a ar rcsTD build/opt/mongo/db/storage/ephemeral_for_test/libephemeral_for_test_record_store.a build/opt/mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.o Skipping ranlib for thin archive build/opt/mongo/db/storage/ephemeral_for_test/libephemeral_for_test_record_store.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/util/summation.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/asio-master/asio/include -Ibuild/opt -Isrc src/mongo/util/summation.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/replication_coordinator_external_state_impl.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/replication_coordinator_external_state_impl.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/data_replicator_external_state_impl.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.h:33, from src/mongo/db/repl/data_replicator_external_state_initial_sync.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/s/client/librs_local_client.a build/opt/mongo/s/client/rs_local_client.o Skipping ranlib for thin archive build/opt/mongo/s/client/librs_local_client.a ar rcsTD build/opt/mongo/db/liblogical_session_id.a build/opt/mongo/db/logical_session_id.o build/opt/mongo/db/logical_session_id_gen.o build/opt/mongo/db/refresh_sessions_gen.o Skipping ranlib for thin archive build/opt/mongo/db/liblogical_session_id.a ar rcsTD build/opt/mongo/db/repl/libtask_runner.a build/opt/mongo/db/repl/task_runner.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libtask_runner.a ar rcsTD build/opt/mongo/util/libprocparser.a build/opt/mongo/util/procparser.o Skipping ranlib for thin archive build/opt/mongo/util/libprocparser.a ar rcsTD build/opt/mongo/db/libindex_names.a build/opt/mongo/db/index_names.o Skipping ranlib for thin archive build/opt/mongo/db/libindex_names.a ar rcsTD build/opt/third_party/asio-master/libasio.a build/opt/third_party/asio-master/asio/src/asio.o Skipping ranlib for thin archive build/opt/third_party/asio-master/libasio.a ar rcsTD build/opt/mongo/db/libcloner.a build/opt/mongo/db/cloner.o Skipping ranlib for thin archive build/opt/mongo/db/libcloner.a ar rcsTD build/opt/mongo/util/libsummation.a build/opt/mongo/util/summation.o Skipping ranlib for thin archive build/opt/mongo/util/libsummation.a ar rcsTD build/opt/mongo/db/auth/libauthmongod.a build/opt/mongo/db/auth/authz_manager_external_state_d.o build/opt/mongo/db/auth/authz_session_external_state_d.o Skipping ranlib for thin archive build/opt/mongo/db/auth/libauthmongod.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/mmap_v1/mmap_v1_options.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/mmap_v1/mmap_v1_options.cpp ar rcsTD build/opt/mongo/db/query/libexplain_options.a build/opt/mongo/db/query/explain_options.o Skipping ranlib for thin archive build/opt/mongo/db/query/libexplain_options.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/ftdc_commands.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/ftdc_commands.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/bgsync.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/op_observer.h:37, from src/mongo/db/free_mon/free_mon_op_observer.h:34, from src/mongo/db/free_mon/free_mon_op_observer.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:37, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:37, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:37, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:37, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/free_mon/free_mon_op_observer.cpp: In member function 'virtual void mongo::FreeMonOpObserver::onInserts(mongo::OperationContext*, const mongo::NamespaceString&, mongo::OptionalCollectionUUID, std::vector::const_iterator, std::vector::const_iterator, bool)': src/mongo/db/free_mon/free_mon_op_observer.cpp:72:6: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 72 | void FreeMonOpObserver::onInserts(OperationContext* opCtx, | ^~~~~~~~~~~~~~~~~ src/mongo/db/free_mon/free_mon_op_observer.cpp:72:6: note: parameter passing for argument of type 'std::vector::const_iterator' {aka '__gnu_cxx::__normal_iterator >'} changed in GCC 7.1 ar rcsTD build/opt/mongo/db/free_mon/libfree_mon.a build/opt/mongo/db/free_mon/free_mon_processor.o build/opt/mongo/db/free_mon/free_mon_queue.o build/opt/mongo/db/free_mon/free_mon_op_observer.o build/opt/mongo/db/free_mon/free_mon_storage.o build/opt/mongo/db/free_mon/free_mon_controller.o build/opt/mongo/db/free_mon/free_mon_protocol_gen.o build/opt/mongo/db/free_mon/free_mon_commands_gen.o build/opt/mongo/db/free_mon/free_mon_storage_gen.o Skipping ranlib for thin archive build/opt/mongo/db/free_mon/libfree_mon.a ar rcsTD build/opt/mongo/util/libperiodic_runner_factory.a build/opt/mongo/util/periodic_runner_factory.o Skipping ranlib for thin archive build/opt/mongo/util/libperiodic_runner_factory.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/db_raii.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/db_raii.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.cpp:37: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.cpp:37: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.cpp:37: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.cpp:37: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/db_raii.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/repl/noop_writer.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/repl/noop_writer.cpp src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/db_raii.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/db_raii.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/db_raii.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/ftdc/ftdc_commands.cpp:37: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/noop_writer.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ ar rcsTD build/opt/mongo/db/repl/librepl_settings.a build/opt/mongo/db/repl/repl_settings.o build/opt/mongo/db/repl/repl_settings_init.o Skipping ranlib for thin archive build/opt/mongo/db/repl/librepl_settings.a ar rcsTD build/opt/mongo/db/libindex_d.a build/opt/mongo/db/index_builder.o build/opt/mongo/db/index_legacy.o build/opt/mongo/db/index_rebuilder.o In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/noop_writer.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ Skipping ranlib for thin archive build/opt/mongo/db/libindex_d.a ar rcsTD build/opt/mongo/db/pipeline/libaggregation_request.a build/opt/mongo/db/pipeline/aggregation_request.o Skipping ranlib for thin archive build/opt/mongo/db/pipeline/libaggregation_request.a ar rcsTD build/opt/mongo/db/storage/libstorage_engine_metadata.a build/opt/mongo/db/storage/storage_engine_metadata.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_engine_metadata.a ar rcsTD build/opt/mongo/db/repl/libbgsync.a build/opt/mongo/db/repl/bgsync.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libbgsync.a ar rcsTD build/opt/mongo/util/net/libnetwork.a build/opt/mongo/util/net/cidr.o build/opt/mongo/util/net/hostandport.o build/opt/mongo/util/net/hostname_canonicalization.o build/opt/mongo/util/net/sockaddr.o build/opt/mongo/util/net/socket_exception.o build/opt/mongo/util/net/socket_utils.o build/opt/mongo/util/net/hostandport_gen.o Skipping ranlib for thin archive build/opt/mongo/util/net/libnetwork.a ar rcsTD build/opt/mongo/db/repl/libdrop_pending_collection_reaper.a build/opt/mongo/db/repl/drop_pending_collection_reaper.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libdrop_pending_collection_reaper.a ar rcsTD build/opt/mongo/executor/libnetwork_interface_factory.a build/opt/mongo/executor/network_interface_factory.o Skipping ranlib for thin archive build/opt/mongo/executor/libnetwork_interface_factory.a ar rcsTD build/opt/mongo/db/commands/libmongod_fsync.a build/opt/mongo/db/commands/fsync.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libmongod_fsync.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/ftdc/varint.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/ftdc/varint.cpp In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/noop_writer.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/noop_writer.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/ftdc/libftdc.a build/opt/mongo/db/ftdc/block_compressor.o build/opt/mongo/db/ftdc/collector.o build/opt/mongo/db/ftdc/compressor.o build/opt/mongo/db/ftdc/controller.o build/opt/mongo/db/ftdc/decompressor.o build/opt/mongo/db/ftdc/file_manager.o build/opt/mongo/db/ftdc/file_reader.o build/opt/mongo/db/ftdc/file_writer.o build/opt/mongo/db/ftdc/util.o build/opt/mongo/db/ftdc/varint.o Skipping ranlib for thin archive build/opt/mongo/db/ftdc/libftdc.a ar rcsTD build/opt/mongo/db/storage/kv/libkv_engine_core.a build/opt/mongo/db/storage/kv/kv_catalog.o build/opt/mongo/db/storage/kv/kv_collection_catalog_entry.o Skipping ranlib for thin archive build/opt/mongo/db/storage/kv/libkv_engine_core.a ar rcsTD build/opt/mongo/db/libwire_version.a build/opt/mongo/db/wire_version.o Skipping ranlib for thin archive build/opt/mongo/db/libwire_version.a ar rcsTD build/opt/mongo/db/libtime_proof_service.a build/opt/mongo/db/time_proof_service.o Skipping ranlib for thin archive build/opt/mongo/db/libtime_proof_service.a ar rcsTD build/opt/mongo/executor/libconnection_pool_executor.a build/opt/mongo/executor/connection_pool.o Skipping ranlib for thin archive build/opt/mongo/executor/libconnection_pool_executor.a ar rcsTD build/opt/mongo/util/libicu_init.a build/opt/mongo/util/icu_init.o Skipping ranlib for thin archive build/opt/mongo/util/libicu_init.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/storage/journal_listener.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/storage/journal_listener.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/repl/storage_interface.h:42, from src/mongo/db/repl/oplog_applier.h:45, from src/mongo/db/repl/data_replicator_external_state.h:36, from src/mongo/db/repl/bgsync.h:38, from src/mongo/db/repl/replication_coordinator_external_state_impl.h:37, from src/mongo/db/repl/replication_coordinator_external_state_impl.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/ftdc/libftdc_mongod.a build/opt/mongo/db/ftdc/ftdc_commands.o build/opt/mongo/db/ftdc/ftdc_mongod.o Skipping ranlib for thin archive build/opt/mongo/db/ftdc/libftdc_mongod.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/db/s/sharding_state.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Isrc/third_party/s2 -Ibuild/opt -Isrc src/mongo/db/s/sharding_state.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/plan_cache.h:37, from src/mongo/db/catalog/collection_info_cache.h:35, from src/mongo/db/catalog/collection.h:43, from src/mongo/db/catalog_raii.h:34, from src/mongo/db/db_raii.h:35, from src/mongo/db/db_raii.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/repl/noop_writer.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call ar rcsTD build/opt/mongo/db/storage/mmap_v1/libmmap_v1_options.a build/opt/mongo/db/storage/mmap_v1/mmap_v1_options.o Skipping ranlib for thin archive build/opt/mongo/db/storage/mmap_v1/libmmap_v1_options.a ar rcsTD build/opt/mongo/transport/libtransport_layer_common.a build/opt/mongo/transport/service_entry_point_utils.o build/opt/mongo/transport/session.o build/opt/mongo/transport/transport_layer.o Skipping ranlib for thin archive build/opt/mongo/transport/libtransport_layer_common.a ar rcsTD build/opt/mongo/rpc/libaudit_metadata.a build/opt/mongo/rpc/metadata/audit_metadata.o Skipping ranlib for thin archive build/opt/mongo/rpc/libaudit_metadata.a ar rcsTD build/opt/mongo/db/storage/libjournal_listener.a build/opt/mongo/db/storage/journal_listener.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libjournal_listener.a ar rcsTD build/opt/mongo/db/commands/libserver_status_servers.a build/opt/mongo/db/commands/server_status_servers.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libserver_status_servers.a ar rcsTD build/opt/mongo/db/storage/libstorage_engine_common.a build/opt/mongo/db/storage/storage_engine_init.o Skipping ranlib for thin archive build/opt/mongo/db/storage/libstorage_engine_common.a ar rcsTD build/opt/mongo/db/commands/libwrite_commands_common.a build/opt/mongo/db/commands/write_commands/write_commands_common.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libwrite_commands_common.a ar rcsTD build/opt/mongo/db/s/libsharding_api_d.a build/opt/mongo/db/s/collection_metadata.o build/opt/mongo/db/s/collection_sharding_state.o build/opt/mongo/db/s/database_sharding_state.o build/opt/mongo/db/s/operation_sharding_state.o build/opt/mongo/db/s/sharded_connection_info.o build/opt/mongo/db/s/sharding_migration_critical_section.o build/opt/mongo/db/s/sharding_state.o Skipping ranlib for thin archive build/opt/mongo/db/s/libsharding_api_d.a ar rcsTD build/opt/mongo/db/libprefetch.a build/opt/mongo/db/prefetch.o Skipping ranlib for thin archive build/opt/mongo/db/libprefetch.a ar rcsTD build/opt/mongo/db/repl/libdata_replicator_external_state_initial_sync.a build/opt/mongo/db/repl/data_replicator_external_state_initial_sync.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libdata_replicator_external_state_initial_sync.a ar rcsTD build/opt/mongo/db/commands/libfsync_locked.a build/opt/mongo/db/commands/fsync_locked.o Skipping ranlib for thin archive build/opt/mongo/db/commands/libfsync_locked.a ar rcsTD build/opt/mongo/db/libkeys_collection_client_sharded.a build/opt/mongo/db/keys_collection_client_sharded.o Skipping ranlib for thin archive build/opt/mongo/db/libkeys_collection_client_sharded.a ar rcsTD build/opt/mongo/db/matcher/libpath.a build/opt/mongo/db/matcher/path.o build/opt/mongo/db/matcher/path_internal.o Skipping ranlib for thin archive build/opt/mongo/db/matcher/libpath.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_remove_shard_from_zone_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_fsync_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/commands/cluster_fsync_cmd.cpp ar rcsTD build/opt/mongo/db/libdb_raii.a build/opt/mongo/db/db_raii.o Skipping ranlib for thin archive build/opt/mongo/db/libdb_raii.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_whats_my_uri_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp ar rcsTD build/opt/mongo/db/repl/libserveronly_repl.a build/opt/mongo/db/repl/noop_writer.o build/opt/mongo/db/repl/replication_coordinator_external_state_impl.o build/opt/mongo/db/repl/sync_source_feedback.o Skipping ranlib for thin archive build/opt/mongo/db/repl/libserveronly_repl.a Using tempfile /tmp/tmpDmdchN.lnk for command line: /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/mongod -pthread -Wl,-z,now -rdynamic -fstack-protector-strong -Wl,--build-id -Wl,--hash-style=gnu -Wl,-z,noexecstack -Wl,-z,relro -pie build/opt/mongo/db/dbmain.o -Wl,--start-group -Wl,--whole-archive build/opt/mongo/libmongodmain.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/options_parser/liboptions_parser_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libversion_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/libmongod_options_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/wiredtiger/libstorage_wiredtiger_customization_hooks.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libstorage_interface_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librepl_set_commands.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librepl_set_status_commands.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_context_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libservice_entry_point.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_entry_point_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserveronly.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_init_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/ephemeral_for_test/libstorage_ephemeral_for_test_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libindex_entry_comparison.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/devnull/libstorage_devnull.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/kv/libkv_engine.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/kv/libkv_storage_engine.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/kv/libkv_database_catalog_entry_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/kv/libkv_engine_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libbson_collection_catalog_entry.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/devnull/libstorage_devnull_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/ephemeral_for_test/libephemeral_for_test_record_store.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libop_observer_sharding_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libcommands_db_s.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/commands/libshared_cluster_commands.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libserveronly_repl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreplication_recovery.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreplication_info.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreplication_consistency_markers_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreplication_consistency_markers_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librepl_coordinator_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libtopology_coordinator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libscatter_gather.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreporter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libdata_replicator_external_state_initial_sync.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libbgsync.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libsync_source_resolver.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librs_rollback.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librslog.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librollback_source_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librollback_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libroll_back_local_operations.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_interface_remote.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_interface_local.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libdata_replicator_external_state_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_buffer_proxy.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_buffer_collection.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_application.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libsharding_runtime_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_initialization.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libperiodic_runner_factory.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libperiodic_runner_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_task_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libreplset_dist_lock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libdist_lock_catalog_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libdist_lock_catalog_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_cache_factory_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_liaison_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/client/libshard_local.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libmigration_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libop_observer_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplogreader.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libinitial_syncer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librollback_checker.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_fetcher.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libabstract_oplog_fetcher.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_buffer_blocking_queue.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libmultiapplier.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libdatabases_cloner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libdatabase_cloner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libcollection_cloner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libtask_runner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libabstract_async_component.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libconnection_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libttl_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libstartup_warnings_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libstartup_warnings_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libprefetch.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/fts/libftsmongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/librepair_database_and_check_version.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libperiodic_runner_job_abort_expired_transactions.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libmongodandmongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libsecurity_key.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libmongod_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_cache_factory_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libtransaction_reaper.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsessions_collection_standalone.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsessions_collection_config_server.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsessions_collection_sharded.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_api.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/write_ops/libcluster_write_op.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libcluster_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libstore_possible_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libcluster_cursor_cleanup_job.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libcluster_client_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/librouter_exec_stage.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/commands/libcluster_commands_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsessions_collection_rs.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libremote_command_targeter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_liaison_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkeys_collection_client_direct.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/client/librs_local_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libinitialize_snmp.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/ftdc/libftdc_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/free_mon/libfree_mon_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/ftdc/libftdc_server.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libprocparser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/free_mon/libfree_mon.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/ftdc/libftdc.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libserver_status_servers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libmongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libsharding_catalog_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libtype_shard_identity.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcloner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/exec/libstagedebug_cmd.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libstandalone.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/ops/libwrite_ops_exec.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/librw_concern_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libtimer_stats.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcommand_can_run_here.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libwrite_commands_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/liblist_databases_command.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/liblist_collections_filter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libcurrent_op_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libshell_protocol.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libprofile_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libmongod_fsync.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libstorage_mmapv1.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/librecord_access_tracker.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/liblogfile.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libmmap.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libfile_allocator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libcompress.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libjournal_listener.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/kv/libkv_prefix.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libfsync_locked.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libmongod_fcv.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkill_sessions_local.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libkill_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcatalog_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/views/libviews_mongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libmmap_v1_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_engine_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_engine_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libpaths.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_engine_lock_file.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libbalancer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libdrop_pending_collection_reaper.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libttl_collection_cache.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsystem_index.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/librepair_database.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/librepair_database_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_repair_observer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_file_util.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libserver_read_concern_write_concern_metrics.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libdbcheck.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libop_observer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libindex_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/index/libindex_access_methods.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcollection_index_usage_tracker.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libindex_key_validate.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libhealth_log.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/concurrency/libdeferred_writer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcatalog_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libindex_create.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcollection_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthmongod.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libdbhelpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libwrite_ops.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libintrospect.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libquery_exec.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libelapsed_tracker.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/liboplog_hack.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libserveronly_stats.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libquery_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/datetime/libinit_timezone_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/collation/libcollator_icu.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/matcher/libexpressions_mongod_only.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/scripting/libscripting_server.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/scripting/libscripting.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/scripting/libscripting_none.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/scripting/libbson_template_evaluator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcursor_server_params.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libbackground.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/exec/libworking_set.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/exec/libscoped_timer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcollection_info_cache.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libdb_raii.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcatalog_raii.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/views/libviews.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/views/libresolved_view.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libaggregation.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libpipeline.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libasync_results_merger.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libasync_requests_sender.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libsharding_catalog_client_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/client/libsharding_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libfetcher.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libdist_lock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libparsed_aggregation_projection.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libgranularity_rounder.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libdocument_sources_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libaccumulator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/index/libkey_generator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/fts/libbase_fts.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_stemmer.a -Wl,--no-whole-archive build/opt/third_party/libstemmer_c/libstemmer.a -Wl,--whole-archive build/opt/mongo/db/fts/unicode/libunicode.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/liblinenoise_utf8.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libtop.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libfill_locker_info.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboplog_entry.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libdbdirectclient.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcurop_metrics.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcurop_failpoint_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/index/libindex_access_method.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libbtree.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/librecord_store_v1.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/mmap_v1/libextent.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libencryption_hooks.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcurop.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libprogress_meter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/index/libindex_descriptor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libindex_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/concurrency/libwrite_conflict_exception.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libindex_catalog_entry.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthservercommon.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libservers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libntservice.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsignal_handlers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/scripting/libscripting_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/shell/libmongojs.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_legacy_api.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libcluster_last_error_info.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblasterror.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libcoreshard.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/concurrency/libthread_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libgrid.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/query/libcluster_cursor_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libgeneric_cursor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/client/libshard_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libremote_command_retry_scheduler.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_time_metadata_hook.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libtask_executor_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libisself.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libclientdriver_network.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libthread_pool_task_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libnetwork_interface_thread_pool.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libnetwork_interface_factory.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libnetwork_interface_tl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libtransport_layer_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libservice_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libtransport_layer.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/base/libsystem_error.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libasync_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libnetwork_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libtask_executor_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libconnection_pool_executor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libegress_tag_closer_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libconnection_pool_stats.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblog_process_details.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreplica_set_messages.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libsplit_horizon.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librepl_coordinator_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libreplication_process.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libstorage_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librollback_idl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserver_options_servers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libmessage_compressor.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_zlib.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_snappy.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserver_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/cmdline_utils/libcmdline_utils.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libfeature_compatibility_parsers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libcore.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/logger/libparse_log_component_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_cache_impl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/s/libsharding_api_d.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libsharding_routing_table.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libkey_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/librange_arithmetic.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/concurrency/liblock_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/concurrency/libticketholder.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsessions_collection.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/write_ops/libbatch_write_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/ops/libwrite_ops_parsers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_liaison.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_id_helpers.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_cache.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkill_sessions.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libclientdriver_minimal.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libclient_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libauthentication.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libsecurity_file.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libsaslauth.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libsasl_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/executor/libremote_command.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauth_impl_internal_local.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauth_impl_internal.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libssl_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_asio.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/asio-master/libasio.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libssl_types.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libssl_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libsocket.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libbackground_job.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libserver_status.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/stats/libcounters.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcommands.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/librpc.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libprotocol.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libwire_version.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/liblegacy_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/liblegacy_reply.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libcommon_s.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libconnection_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libdns_query.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libobject_check.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libmetadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libclient_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/libis_mongos.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_time_validator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libsigned_logical_time.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkeys_collection_manager.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkeys_collection_client_sharded.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/s/catalog/libsharding_catalog_client.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libkeys_collection_document.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libtime_proof_service.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libcommand_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/client/libread_preference.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libcommand_reply.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libdbmessage.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libaudit.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libtest_commands_enabled.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/commands/libserver_status_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libinternal_user_auth.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libicu.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libicu_init.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_icu.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/icu4c-57.1/source/libicu_i18n.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/icu4c-57.1/source/libicu_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/icu4c-57.1/source/libicu_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/liblite_parsed_document_source.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libdocument_validation.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libuser_document_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/librole_graph_update.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/update/libupdate_driver.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/update/libupdate.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/update/libupdate_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libupdate_index_data.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_clock.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libglobal_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/librepl_settings.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libquery_planner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libindex_bounds.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/matcher/libexpressions.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libquery_knobs.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libexpression.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsummation.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libexpression_context.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/collation/libcollator_factory_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libaggregation_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libexplain_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libcommand_request_response.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libcommand_status.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/libquery_request.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/libread_concern_args.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_time.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libuuid_catalog.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libdatabase_holder.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libdatabase.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/catalog/libcollection.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libnamespace_string.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/repl/liboptime.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libdependencies.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/pipeline/libdocument_value.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libintrusive_counter.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/datetime/libdate_time_support.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_timelib.a -Wl,--no-whole-archive build/opt/third_party/timelib-2018.01alpha1/libtimelib.a -Wl,--whole-archive build/opt/mongo/db/pipeline/libfield_path.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/matcher/libpath.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/fts/libfts_query_noop.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/index/libexpression_params.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/query/collation/libcollator_interface.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libmongohasher.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libmd5.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/geo/libgeoparser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/geo/libgeometry.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/libs2.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/util/math/libmath.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/util/coding/libcoding.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/strings/libstrings.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/s2/base/libbase_s2.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/bson/libdotted_path_support.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libuser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libsasl_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/options_parser/liboptions_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_yaml.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/librole_graph.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthprivilege.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcommon.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libwrite_concern_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libindex_names.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthorization_manager_global.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauth.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/rpc/libaudit_metadata.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libservice_context.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libperiodic_runner.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libfail_point.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libclock_sources.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/transport/libtransport_layer_common.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libwrite_unit_of_work.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/storage/libstorage_options.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/liblogical_session_id.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserver_parameters.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/crypto/libsha_block_openssl.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/crypto/libsha1_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/crypto/libsha256_block.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsecure_compare_memory.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libuser_name.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauth_rolename.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libaddress_restriction.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/idl/libidl_parser.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libcommand_generic_argument.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/auth/libauthentication_restriction.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/net/libnetwork.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libwinutil.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/concurrency/libspin_lock.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/bson/util/libbson_extract.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/bson/mutable/libmutable_bson.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsafe_num.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/base/libsecure_allocator.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libsecure_zero_memory.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libprocessinfo.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/db/libserver_options_core.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/libbase.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/murmurhash3/libmurmurhash3.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_pcrecpp.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_intel_decimal128.a -Wl,--no-whole-archive build/opt/third_party/IntelRDFPMathLib20U1/libintel_decimal128.a -Wl,--whole-archive build/opt/third_party/libshim_boost.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/mongo/util/libquick_exit.a -Wl,--no-whole-archive -Wl,--whole-archive build/opt/third_party/libshim_allocator.a -Wl,--no-whole-archive build/opt/mongo/util/libdebugger.a -Wl,--end-group -lcurl -lz -lsnappy -lyaml-cpp -lpcre -lpcrecpp -lboost_program_options -lboost_filesystem -lboost_system -lboost_iostreams -lm -lresolv -lcrypto -lssl -lcrypto -ldl -lrt -ldl /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ @/tmp/tmpDmdchN.lnk In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:38: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:38: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:38: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_fsync_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:38: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_fsync_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_fsync_cmd.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_fsync_cmd.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_remove_shard_from_zone_cmd.cpp:38: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_whats_my_uri_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_fsync_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_repl_set_get_status_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/pipeline_s.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/commands/pipeline_s.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_coll_stats_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/commands/cluster_coll_stats_cmd.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:34: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:34: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:34: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/mongo_process_interface.h:44, from src/mongo/db/pipeline/mongo_process_common.h:36, from src/mongo/s/commands/pipeline_s.h:33, from src/mongo/s/commands/pipeline_s.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:34: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/mongo_process_interface.h:44, from src/mongo/db/pipeline/mongo_process_common.h:36, from src/mongo/s/commands/pipeline_s.h:33, from src/mongo/s/commands/pipeline_s.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:38, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/commands/pipeline_s.h:34, from src/mongo/s/commands/pipeline_s.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/commands/pipeline_s.h:34, from src/mongo/s/commands/pipeline_s.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_repl_set_get_status_cmd.cpp:34: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/committed_optime_metadata_hook.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/committed_optime_metadata_hook.cpp In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/pipeline/pipeline.h:38, from src/mongo/s/commands/pipeline_s.h:34, from src/mongo/s/commands/pipeline_s.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_coll_stats_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_explain_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/commands/cluster_explain_cmd.cpp /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_split_cmd.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/commands/cluster_split_cmd.cpp ar rcsTD build/opt/mongo/s/libcommitted_optime_metadata_hook.a build/opt/mongo/s/committed_optime_metadata_hook.o Skipping ranlib for thin archive build/opt/mongo/s/libcommitted_optime_metadata_hook.a /home/buildroot/autobuild/instance-1/output-1/host/bin/arm-linux-g++ -o build/opt/mongo/s/commands/cluster_current_op.o -c -Woverloaded-virtual -Wpessimizing-move -Wredundant-move -Wno-maybe-uninitialized -std=c++14 -fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-const-variable -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp -fPIE -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS -Ibuild/opt -Isrc src/mongo/s/commands/cluster_current_op.cpp In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain_cmd.cpp:35: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain_cmd.cpp:35: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain_cmd.cpp:35: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/s/commands/cluster_current_op.cpp:33: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/s/commands/cluster_current_op.cpp:33: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain_cmd.cpp:35: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/s/commands/cluster_current_op.cpp:33: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call In file included from src/mongo/db/pipeline/value.h:35, from src/mongo/db/pipeline/document_internal.h:39, from src/mongo/db/pipeline/document.h:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_cmd.cpp:42: src/mongo/db/pipeline/value_internal.h: In copy constructor 'mongo::ValueStorage::ValueStorage(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:168:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 168 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In constructor 'mongo::ValueStorage::ValueStorage(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:173:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 173 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In destructor 'mongo::ValueStorage::~ValueStorage()': src/mongo/db/pipeline/value_internal.h:181:45: warning: 'void* memset(void*, int, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment [-Wclass-memaccess] 181 | DEV memset(this, 0xee, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(const mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:196:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 196 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'mongo::ValueStorage& mongo::ValueStorage::operator=(mongo::ValueStorage&&)': src/mongo/db/pipeline/value_internal.h:205:42: warning: 'void* memmove(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 205 | memmove(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::swap(mongo::ValueStorage&)': src/mongo/db/pipeline/value_internal.h:214:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 214 | memcpy(this, &rhs, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h:215:41: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 215 | memcpy(&rhs, temp, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/pipeline/value_internal.h: In member function 'void mongo::ValueStorage::zero()': src/mongo/db/pipeline/value_internal.h:302:38: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class mongo::ValueStorage' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 302 | memset(this, 0, sizeof(*this)); | ^ src/mongo/db/pipeline/value_internal.h:80:7: note: 'class mongo::ValueStorage' declared here 80 | class ValueStorage { | ^~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move 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:33, from src/mongo/db/pipeline/dependencies.h:37, from src/mongo/db/matcher/expression.h:42, from src/mongo/db/query/canonical_query.h:37, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_cmd.cpp:42: src/mongo/db/pipeline/document_internal.h: In member function 'void mongo::DocumentStorage::hashTabInit()': src/mongo/db/pipeline/document_internal.h:351:44: warning: 'void* memset(void*, int, size_t)' writing to an object of non-trivial type 'class mongo::Position'; use assignment instead [-Wclass-memaccess] 351 | memset(_hashTab, -1, hashTabBytes()); | ^ src/mongo/db/pipeline/document_internal.h:47:7: note: 'class mongo::Position' declared here 47 | class Position { | ^~~~~~~~ src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/s/commands/cluster_current_op.cpp:33: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_cmd.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::EqualityMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:192:25: warning: redundant move in return statement [-Wredundant-move] 192 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:192:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:214:25: warning: redundant move in return statement [-Wredundant-move] 214 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:214:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::LTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:236:25: warning: redundant move in return statement [-Wredundant-move] 236 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:236:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:258:25: warning: redundant move in return statement [-Wredundant-move] 258 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:258:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::GTEMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:280:25: warning: redundant move in return statement [-Wredundant-move] 280 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:280:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::RegexMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:300:25: warning: redundant move in return statement [-Wredundant-move] 300 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:300:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ModMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:344:25: warning: redundant move in return statement [-Wredundant-move] 344 | return std::move(m); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:344:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::ExistsMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:380:25: warning: redundant move in return statement [-Wredundant-move] 380 | return std::move(e); | ~~~~~~~~~^~~ src/mongo/db/matcher/expression_leaf.h:380:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_text_base.h:33, from src/mongo/db/matcher/extensions_callback.h:34, from src/mongo/db/matcher/extensions_callback_noop.h:33, from src/mongo/db/query/canonical_query.h:38, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_cmd.cpp:42: src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllSetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:561:25: warning: redundant move in return statement [-Wredundant-move] 561 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:561:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAllClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:582:25: warning: redundant move in return statement [-Wredundant-move] 582 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:582:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnySetMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:603:25: warning: redundant move in return statement [-Wredundant-move] 603 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:603:25: note: remove 'std::move' call src/mongo/db/matcher/expression_leaf.h: In member function 'virtual std::unique_ptr mongo::BitsAnyClearMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_leaf.h:624:25: warning: redundant move in return statement [-Wredundant-move] 624 | return std::move(bitTestMatchExpression); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ src/mongo/db/matcher/expression_leaf.h:624:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:39, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_cmd.cpp:42: src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::AndMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:128:25: warning: redundant move in return statement [-Wredundant-move] 128 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:128:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::OrMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:157:25: warning: redundant move in return statement [-Wredundant-move] 157 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:157:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NorMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:186:25: warning: redundant move in return statement [-Wredundant-move] 186 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:186:25: note: remove 'std::move' call src/mongo/db/matcher/expression_tree.h: In member function 'virtual std::unique_ptr mongo::NotMatchExpression::shallowClone() const': src/mongo/db/matcher/expression_tree.h:204:25: warning: redundant move in return statement [-Wredundant-move] 204 | return std::move(self); | ~~~~~~~~~^~~~~~ src/mongo/db/matcher/expression_tree.h:204:25: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_explain_cmd.cpp:35: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(memory.cpp.o): relocation R_ARM_MOVW_ABS_NC against `__pthread_key_create@@GLIBC_2.4' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(node_data.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(parse.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(parser.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scanner.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scantoken.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(simplekey.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(singledocparser.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(stream.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(tag.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(directives.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(nodebuilder.cpp.o): relocation R_ARM_MOVW_ABS_NC against `__pthread_key_create@@GLIBC_2.4' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(null.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(regex_yaml.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scanscalar.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scantag.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(exp.cpp.o): relocation R_ARM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib/libyaml-cpp.a(scanner.cpp.o)(.text+0x134): unresolvable R_ARM_MOVW_ABS_NC relocation against symbol `_ZNSt13runtime_errorD1Ev@@GLIBCXX_3.4' /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: final link failed: nonrepresentable section on output collect2: error: ld returned 1 exit status scons: *** [build/opt/mongo/mongod] Error 1 In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/db/commands/current_op_common.h:35, from src/mongo/s/commands/cluster_current_op.cpp:33: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call In file included from src/mongo/db/matcher/expression_parser.h:40, from src/mongo/db/query/parsed_projection.h:32, from src/mongo/db/query/canonical_query.h:40, from src/mongo/db/query/explain.h:35, from src/mongo/db/commands.h:47, from src/mongo/s/commands/cluster_split_cmd.cpp:42: src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::InternalSchemaTypeExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] 61 | return std::move(expr); | ^ src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call src/mongo/db/matcher/expression_type.h: In instantiation of 'std::unique_ptr mongo::TypeMatchExpressionBase::shallowClone() const [with T = mongo::TypeMatchExpression]': src/mongo/db/matcher/expression_type.h:56:38: required from here src/mongo/db/matcher/expression_type.h:61:30: warning: redundant move in return statement [-Wredundant-move] src/mongo/db/matcher/expression_type.h:61:30: note: remove 'std::move' call scons: building terminated because of errors. build/opt/mongo/mongod failed: Error 1 package/pkg-generic.mk:266: recipe for target '/home/buildroot/autobuild/instance-1/output-1/build/mongodb-r4.0.12/.stamp_built' failed make: *** [/home/buildroot/autobuild/instance-1/output-1/build/mongodb-r4.0.12/.stamp_built] Error 2 make: Leaving directory '/home/buildroot/autobuild/instance-1/buildroot'